Is there some (easy) way to avoid this while still using readFile?

readFile' f = do s <- readFile f
                 return (length s `seq` s)

(and curse the fact that the default readFile is unsafelazy).

Jules
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to