Hoogle Search
Within LTS Haskell 24.41 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
readFile :: FilePath -> IO Stringclash-prelude Clash.HaskellPrelude 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 Textdebian Debian.UTF8 No documentation available.
readFile :: OsPath -> IO ByteStringfile-io System.File.OsPath The readFile function reads a file and returns the contents of the file as a ByteString. The file is read lazily, on demand.
readFile :: OsPath -> IO ByteStringfile-io System.File.OsPath.Internal The readFile function reads a file and returns the contents of the file as a ByteString. The file is read lazily, on demand.
readFile :: PlatformPath -> IO ByteStringfile-io System.File.PlatformPath Like readFile, but takes a PlatformPath instead of an OsPath.
readFile :: PlatformPath -> IO ByteStringfile-io System.File.PlatformPath.Internal Like readFile, but takes a PlatformPath instead of an OsPath.
readFile :: FilePath -> IO Stringihaskell IHaskellPrelude The readFile function reads a file and returns the contents of the file as a string. The file is read strictly, as with getContents.
readFile :: MonadIO m => FilePath -> m Textwith-utf8 Data.Text.IO.Utf8 Like readFile, but assumes the file is encoded in UTF-8, regardless of the current locale.
readFile :: MonadIO m => FilePath -> m Textwith-utf8 Data.Text.Lazy.IO.Utf8 Like readFile, but assumes the file is encoded in UTF-8, regardless of the current locale.
readFile :: FilePath -> IO StringAgda Agda.Utils.IO.UTF8 Reads a UTF8-encoded text file and converts many character sequences which may be interpreted as line or paragraph separators into 'n'. If the file cannot be decoded, then a ReadException is raised.