HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Modulerelude-1.2.2.2Haskell2010

Relude.File

SPDX-License-Identifier : MIT Maintainer : Kowainik xrom.xkov@gmail.com Stability : Stable Portability : Portable

Lifted to MonadIO families of file processing functions for the Text, LText, ByteString and LByteString types.

These functions are lifted which means that you can also use them inside various Monad Transformers without adding liftIO call explicitly.

NOTE: These functions are for working with textual data. Functions that work with Text or LText types are system and locale-sensitive (encoding, line-endings). If you want binary data, use ByteString functions (they are also faster since they don't check encoding). However, you can then decode that data with the help of functions from the Relude.String.Conversion module, e. g. decodeUtf8.

To be more precise, avoid the following functions:

See the following blog post for more details:

Contents
  1. Text
  2. Lazy Text
  3. ByteString
  4. Lazy ByteString
Synopsis
  • Packagerelude-1.2.2.2
  • Exports12
  • LanguageHaskell2010
  • LicenceMIT
  • SourceFile.hs

Text

Lazy Text

ByteString

Lazy ByteString