Hoogle Search

Within LTS Haskell 22.20 (ghc-9.6.4)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. readFile :: FilePath -> IO String

    base 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.

  2. readFile :: FilePath -> IO String

    base 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.

  3. readFile :: FilePath -> IO ByteString

    bytestring Data.ByteString

    Read an entire file strictly into a ByteString.

  4. readFile :: FilePath -> IO ByteString

    bytestring Data.ByteString.Char8

    Read an entire file strictly into a ByteString.

  5. readFile :: FilePath -> IO ByteString

    bytestring Data.ByteString.Lazy

    Read an entire file lazily into a ByteString. The Handle will be held open until EOF is encountered. Note that this function's implementation relies on hGetContents. The reader is advised to read its documentation.

  6. readFile :: FilePath -> IO ByteString

    bytestring Data.ByteString.Lazy.Char8

    Read an entire file lazily into a ByteString. The Handle will be held open until EOF is encountered. Note that this function's implementation relies on hGetContents. The reader is advised to read its documentation.

  7. readFile :: FilePath -> IO Text

    text Data.Text.IO

    The readFile function reads a file and returns the contents of the file as a string. The entire file is read strictly, as with getContents. Beware that this function (similarly to readFile) is locale-dependent. Unexpected system locale may cause your application to read corrupted data or throw runtime exceptions about "invalid argument (invalid byte sequence)" or "invalid argument (invalid character)". This is also slow, because GHC first converts an entire input to UTF-32, which is afterwards converted to UTF-8. If your data is UTF-8, using decodeUtf8 . readFile is a much faster and safer alternative.

  8. readFile :: FilePath -> IO Text

    text Data.Text.Lazy.IO

    Read a file and return its contents as a string. The file is read lazily, as with getContents. Beware that this function (similarly to readFile) is locale-dependent. Unexpected system locale may cause your application to read corrupted data or throw runtime exceptions about "invalid argument (invalid byte sequence)" or "invalid argument (invalid character)". This is also slow, because GHC first converts an entire input to UTF-32, which is afterwards converted to UTF-8. If your data is UTF-8, using decodeUtf8 . readFile is a much faster and safer alternative.

  9. readFile :: FilePath -> IO String

    amazonka-core Amazonka.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.

  10. readFile :: FilePath -> IO String

    hedgehog Hedgehog.Internal.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.

Page 1 of many | Next