readFile package:classy-prelude

Strictly read a file into a ByteString.
Strictly read a file into a Text using a UTF-8 character encoding. In the event of a character encoding error, a Unicode replacement character will be used (a.k.a., lenientDecode).