HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleghc-boot-9.10.3Haskell2010

GHC.Utils.Encoding.UTF8

Simple, non-streaming UTF-8 codecs.

This is one of several UTF-8 implementations provided by GHC; see Note [GHC's many UTF-8 implementations] in GHC.Encoding.UTF8 for an overview.

  • 19 values
  • Packageghc-boot-9.10.3
  • Exports19
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceUTF8.hs

Decoding single characters

6 declarations
valueutf8PrevChar :: Ptr Word8 -> IO (Ptr Word8)
#

Find the start of the codepoint preceding the codepoint at the given Ptr. This is undefined if there is no previous valid codepoint.

Decoding strings

4 declarations

Counting characters

2 declarations

Comparison

2 declarations

Encoding strings

5 declarations