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

Moduleghc-boot-10.0.0.20260917GHC2024

GHC.Utils.Encoding.UTF8

Simple, non-streaming Modified 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

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