
Yeah, the unsigned is to demonstrate how "-10" is being interpreted as a number before being cast to an unsigned. My question is: Why isn't this just a read/parse error? "-10" isn't a valid representation for any value of the CUInt type. On Monday, December 2, 2013, wrote:
On Mon, Dec 02, 2013 at 11:38:33AM +1300, ml@extensibl.com javascript:;wrote:
On Mon, Dec 02, 2013 at 11:30:50AM +1300, Patrick Redmond wrote:
Prelude> import Foreign.C.Types Prelude Foreign.C.Types> read "-10" :: CUInt 4294967286 Prelude Foreign.C.Types> read "300" :: CChar 44
CUInt? I would try CInt instead.
Whoops, that is not related to the original question, sorry.
_______________________________________________ Beginners mailing list Beginners@haskell.org javascript:; http://www.haskell.org/mailman/listinfo/beginners