Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
readFile :: FilePath -> IO Stringfaktory Faktory.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 :: 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 :: (Sample e, Buffer a e) => FilePath -> IO (Info, Maybe (a e))hsndfile Sound.File.Sndfile Return the contents of a file in a single buffer.
readFile :: (Sample e, Buffer a e) => FilePath -> IO (Info, Maybe (a e))hsndfile Sound.File.Sndfile.Buffer Return the contents of a file in a single buffer.
readFile :: AbsRel ar => FilePath ar -> IO Stringpathtype System.Path.IO No documentation available.
readFile :: RawFilePath -> IO ByteStringrawfilepath Data.ByteString.RawFilePath Read an entire file at the RawFilePath strictly into a ByteString.
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.