Bytestreams in Haskell