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

Simon Marlow simonmar at microsoft.com
Thu Jan 27 08:54:54 EST 2005

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#?


 f :: Char -> Char#
 f (C# c) = c

there aren't any library functions that do this for you.


More information about the Haskell-Cafe mailing list