Hoogle Search
Within LTS Haskell 22.21 (ghc-9.6.5)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
readFile :: FilePath -> SourceT IO ByteStringservant Servant.Types.SourceT Read file.
>>> foreach fail BS.putStr (readFile "servant.cabal") cabal-version: 2.2 name: servant ...
readFile :: FilePath -> IO Stringghc 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.
readFile :: ParseSettings -> FilePath -> IO Documentxml-conduit Text.XML No documentation available.
readFile :: ParseSettings -> FilePath -> IO Documentxml-conduit Text.XML.Unresolved No documentation available.
readFile :: MonadIO m => FilePath -> m ByteStringrio RIO.ByteString Lifted readFile
readFile :: MonadIO m => FilePath -> m LByteStringrio RIO.ByteString.Lazy Lifted readFile
readFile :: FilePath -> IO Stringstrict System.IO.Strict 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 :: Storable a => FilePath -> IO (Vector a)storablevector Data.StorableVector Read an entire file strictly into a Vector. This is far more efficient than reading the characters into a String and then using pack. It also may be more efficient than opening the file and reading it using hGet. Files are read using 'binary mode' on Windows.
readFile :: FilePath -> IO Textpandoc Text.Pandoc.UTF8 No documentation available.
readFile :: MonadIO m => FilePath -> m Stringrelude Relude.Lifted.File Warning: readFile depends on the system's locale settings and can throw unexpected exceptions.Use readFileBS or readFileLBS instead.