RE: [Haskell-cafe] Convert to unboxed value? How?

27 Jan
2005
27 Jan
'05
1:54 p.m.
On 27 January 2005 12:36, Dimitry Golubovsky wrote:
What function should be used to convert an integer value to Int#?
This function: f :: Int -> Int# f (I# x) = x
A character to Char#?
Similarly: f :: Char -> Char# f (C# c) = c there aren't any library functions that do this for you. Cheers, Simon
7466
Age (days ago)
7466
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow