Hi,

I would like a non-lazy alternative to

readFile

is there such a thing in the libraries?

Not as far as I know, but you can achieve something similar by doing:

-- untested
readFile' file = do
  src <- readFile file
  return $ seq (length src) src

What is the particular reason you want a strict readFile for?

Thanks

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

Reply via email to