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

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 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.