Prefix form of unboxed tuple
Neil Mitchell
ndmitchell at gmail.com
Fri Jul 6 06:26:00 EDT 2007
Hi,
The following works fine:
ghci -fglasgow-exts
Prelude> case (# 1 , 2 #) of (# a , b #) -> error $ show (a,b)
*** Exception: (1,2)
You might expect there to be a prefix form of the unboxed tuple:
Prelude> case (#,#) 1 2 of (# a , b #) -> error $ show (a,b)
<interactive>:1:7: parse error on input `,'
But there isn't. I've added special code into the Yhc code generator
to deal with this particular constructor, so it no longer effects me.
Thanks
Neil
More information about the Glasgow-haskell-users
mailing list