Hoogle Search
Within LTS Haskell 24.3 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
readUTF8File :: FilePath -> IO StringCabal-syntax Distribution.Utils.Generic Reads a UTF8 encoded text file as a Unicode String Reads lazily using ordinary readFile.
userToCanonPath :: FilePath -> IO Stringyi-core System.FriendlyPath Canonicalize a user-friendly path
readBinaryFile :: FilePath -> IO StringMissingH System.IO.Binary Like the built-in readFile, but opens the file in binary instead of text mode.
readFile :: FilePath -> IO Stringghc-internal GHC.Internal.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 Stringghc-internal GHC.Internal.System.IO 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'.
readFile :: FilePath -> IO Stringnumeric-prelude NumericPrelude 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 Stringnumeric-prelude NumericPrelude.Base 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 Stringnumhask NumHask.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 Stringghc-lib-parser GHC.Prelude.Basic 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.
readFileUtf8 :: FilePath -> IO Stringhpc Trace.Hpc.Util Read a file strictly, as opposed to how readFile does it using lazy IO, but also disregard system locale and assume that the file is encoded in UTF-8. Haskell source files are expected to be encoded in UTF-8 by GHC.