
19 Dec
2001
19 Dec
'01
4:34 a.m.
I'm sure this is common knowledge but I can't find it anywhere in the ghc docs. How do you take, say, an Integer and "unbox" it and get an Int# or something?
import GlaExts unbox :: Int -> Int# unbox (I# i) = i box :: Int# -> Int box i = I# i Cheers, Simon
8558
Age (days ago)
8558
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow