[Haskell-beginners] problem with lazy IO

Daniel Fischer daniel.is.fischer at googlemail.com
Thu Nov 10 00:57:07 CET 2011


On Thursday 10 November 2011, 00:48:20, Dennis Raddle wrote:
> It was a pain putting "map (chr . fromIntegral)" in front of everything
> to get regular strings.

import qualified Data.ByteString.Char8 as C

  foo <- C.unpack `fmap` C.readFile whichever

You don't need to put it *everywhere*



More information about the Beginners mailing list