readFile package:base-prelude

The readFile function reads a file and returns the contents of the file as a string. The file is read lazily, on demand, as with getContents.
The readFile' function reads a file and returns the contents of the file as a string. The file is fully read before being returned, as with getContents'.