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

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

Modulebytesmith-0.3.14.0Haskell2010

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.