[Haskell-cafe] Re: [Haskell] installing streams library

Bulat Ziganshin bulat.ziganshin at gmail.com
Wed May 31 09:58:46 EDT 2006


Hello Jacques,

Wednesday, May 31, 2006, 5:33:39 PM, you wrote:

>> decodePtrBitAlignedLE :: (Binary a, Integral size) =>  Ptr x -> size -> IO a
>>
> Am I the only one who finds this encoding-of-types in the _name_ of a 
> function quite distateful?  There is no type safety being enforced here,

can you please write code you suggested? i'm not sure that type "a"
should be encoded only to area pointed by "Ptr a" - binary encoding of
value and it's memory representation are different concepts, although
they are similar at the look


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list