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.
readFileLazy :: (PandocMonad m, MonadIO m) => FilePath -> m ByteStringpandoc Text.Pandoc.Class.IO Read the lazy ByteString contents from a file path, raising an error on failure.
readFileStrict :: (PandocMonad m, MonadIO m) => FilePath -> m ByteStringpandoc Text.Pandoc.Class.IO Read the strict ByteString contents from a file path, raising an error on failure.
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'.
readFileOrStdinPortably :: String -> IO Texthledger-lib Hledger.Utils.IO Like readFilePortably, but read from standard input if the path is "-".
readFileOrStdinPortably' :: Maybe DynEncoding -> String -> IO Texthledger-lib Hledger.Utils.IO Like readFileOrStdinPortably, but take an optional converter.
readFilePortably :: FilePath -> IO Texthledger-lib Hledger.Utils.IO Read text from a file, converting any rn line endings to n,, using the system locale's text encoding, ignoring any utf8 BOM prefix (as seen in paypal's 2018 CSV, eg) if that encoding is utf8.
readFileStrictly :: FilePath -> IO Texthledger-lib Hledger.Utils.IO Like readFilePortably, but read all of the file before proceeding.
readFile' :: Partial => FilePath -> Action Stringshake Development.Shake Read a file, after calling need. The argument file will be tracked as a dependency.
readFileLines :: Partial => FilePath -> Action [String]shake Development.Shake A version of readFile' which also splits the result into lines. The argument file will be tracked as a dependency.
readFileUtf8 :: MonadIO m => FilePath -> m Textclassy-prelude ClassyPrelude Strictly read a file into a Text using a UTF-8 character encoding. In the event of a character encoding error, a Unicode replacement character will be used (a.k.a., lenientDecode).