Re: casting between boxed type and unboxed type

2012-02-27 Thread Paul Liu
Thanks for the hints! I double checked, and found that it was actually using an older copy, that happens to have a different numbering in variable names that creates a mismatch. Regards, Paul Liu On Mon, Feb 27, 2012 at 4:46 AM, Simon Marlow wrote: > On 22/02/2012 19:43, Paul Liu wrote: >> >> HI

Re: casting between boxed type and unboxed type

2012-02-27 Thread Simon Marlow
On 22/02/2012 19:43, Paul Liu wrote: HI all, I notice some weird code is being generated by GHC. Not sure if this is a problem with external core, or indeed what GHC does. So I'm asking the question on the list. Dumping the external core of GHC.IO.FD module shows the following type: base:GHCzi

casting between boxed type and unboxed type

2012-02-22 Thread Paul Liu
HI all, I notice some weird code is being generated by GHC. Not sure if this is a problem with external core, or indeed what GHC does. So I'm asking the question on the list. Dumping the external core of GHC.IO.FD module shows the following type: base:GHCziIOziFD.zdwa2 :: ghczmprim:GHCziPrim.Int