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

Modulebytesmith-0.3.11.1Haskell2010

Data.Bytes.Parser.Utf8

Parse input as UTF-8-encoded text. Parsers in this module will fail if they encounter a byte above 0x7F.

  • 2 values

Get Character

2 declarations
valueany# :: e -> Parser e s Char#
#

Interpret the next one to four bytes as a UTF-8-encoded character. Fails if the decoded codepoint is in the range U+D800 through U+DFFF.

valueshortText :: e -> ShortText -> Parser e s ()
#

Consume input that matches the argument. Fails if the input does not match.