HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

ModuleAgda-2.8.0.2Haskell2010

Agda.Utils.IO.UTF8

Text IO using the UTF8 character encoding.

  • 1 type
  • 4 values
  • PackageAgda-2.8.0.2
  • Exports5
  • LanguageHaskell2010
  • LicenceMIT
  • SourceUTF8.hs
valuereadTextFile :: FilePath -> IO Text
#

Reads a UTF8-encoded text file and converts many character sequences which may be interpreted as line or paragraph separators into 'n'.

If the file cannot be decoded, then a ReadException is raised.

valuereadFile :: FilePath -> IO String
#

Reads a UTF8-encoded text file and converts many character sequences which may be interpreted as line or paragraph separators into 'n'.

If the file cannot be decoded, then a ReadException is raised.

valuewriteFile :: FilePath -> String -> IO ()
#

Writes a UTF8-encoded text file. The native convention for line endings is used.