
11 Sep
2007
11 Sep
'07
7:29 a.m.
* 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". ,-)