Created
May 6, 2016 17:30
-
-
Save madgen/e9388e64c67aad6b892265213f4e1f57 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stg_testMezh ( gcptr smt ) | |
{ | |
W_ itbl; | |
W_ ttype; | |
itbl = GET_INFO(UNTAG(smt)); | |
ttype = TO_W_(StgInfoTable_type(itbl)); | |
return (ttype); | |
} | |
let f x = showIntAtBase 2 intToDigit (I# (testMe# (x))) "" | |
f 10 -- => "0" | |
f Just -- => "110100100010010100110111111000" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment