[Haskell-cafe] Re: Data.Binary Endianness
Lutz Donnerhacke
lutz at iks-jena.de
Tue Sep 11 03:29:35 EDT 2007
* apfelmus wrote:
> It's not that related, but I just got struck by an obvious idea, namely
> to put the endianness in an extra parameter
>
> data Endianness = Little | Big | Host
> putInt32 :: Endianness -> Int -> Put
Please add the endianess to the state of the monad "Put".
setendianess :: Endianness -> Put
And for convinience please add the "Network" constructor to the type
"Endianness". ,-)
More information about the Haskell-Cafe
mailing list