* 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". ,-)
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to