Hoogle Search
Within LTS Haskell 22.23 (ghc-9.6.5)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
readFile :: FilePath -> IO Stringbase 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.
readFile :: FilePath -> IO Stringbase System.IO 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.
readFile :: FilePath -> IO ByteStringbytestring Data.ByteString Read an entire file strictly into a ByteString.
readFile :: FilePath -> IO ByteStringbytestring Data.ByteString.Char8 Read an entire file strictly into a ByteString.
readFile :: FilePath -> IO ByteStringbytestring Data.ByteString.Lazy Read an entire file lazily into a ByteString. The Handle will be held open until EOF is encountered. Note that this function's implementation relies on hGetContents. The reader is advised to read its documentation.
readFile :: FilePath -> IO ByteStringbytestring Data.ByteString.Lazy.Char8 Read an entire file lazily into a ByteString. The Handle will be held open until EOF is encountered. Note that this function's implementation relies on hGetContents. The reader is advised to read its documentation.
readFile :: FilePath -> IO Texttext Data.Text.IO The readFile function reads a file and returns the contents of the file as a string. The entire file is read strictly, as with getContents. Beware that this function (similarly to readFile) is locale-dependent. Unexpected system locale may cause your application to read corrupted data or throw runtime exceptions about "invalid argument (invalid byte sequence)" or "invalid argument (invalid character)". This is also slow, because GHC first converts an entire input to UTF-32, which is afterwards converted to UTF-8. If your data is UTF-8, using decodeUtf8 . readFile is a much faster and safer alternative.
readFile :: FilePath -> IO Texttext Data.Text.Lazy.IO Read a file and return its contents as a string. The file is read lazily, as with getContents. Beware that this function (similarly to readFile) is locale-dependent. Unexpected system locale may cause your application to read corrupted data or throw runtime exceptions about "invalid argument (invalid byte sequence)" or "invalid argument (invalid character)". This is also slow, because GHC first converts an entire input to UTF-32, which is afterwards converted to UTF-8. If your data is UTF-8, using decodeUtf8 . readFile is a much faster and safer alternative.
readFile :: FilePath -> IO Stringamazonka-core Amazonka.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.
readFile :: FilePath -> IO Stringhedgehog Hedgehog.Internal.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.
Page 1 of many | Next