HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

ModuleAgda-2.7.0.1Haskell2010

Agda.Utils.IO.UTF8

Text IO using the UTF8 character encoding.

  • 1 type
  • 4 values
  • PackageAgda-2.7.0.1
  • 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.