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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Moduleutf8-string-1.0.2Haskell2010

Codec.Binary.UTF8.String

Support for encoding UTF8 Strings to and from [Word8]

  • 7 values
  • Packageutf8-string-1.0.2
  • Exports7
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceString.hs
valueutf8Encode :: String -> String
#

utf8Encode str is a convenience function; checks to see if str isn't UTF-8 encoded before doing so. Sometimes useful, but you are better off keeping track of the encoding so as to avoid the cost of checking.