
10 Apr
2001
10 Apr
'01
5:52 a.m.
| -----Original Message----- | From: Thomas Pasch [mailto:pasch@netzGeneration.com] | Sent: Tuesday, April 10, 2001 12:55 AM | To: glasgow-haskell-users@haskell.org | Subject: How to box/unbox values? | | | Hello, | | is there an easy way to box/unbox Types. | I need this for Int's, so is there | a function that does: | | Int# -> Int | Int -> Int# import GlaExts ( Int(..) ) iBox x = I# x iUnbox (I# x) = x