phaser-1.0.2.0: Incremental multiple pass parser library.
CopyrightJeremy List
LicenseBSD-3
Maintainerquick.dudley@gmail.com
Safe HaskellSafe-Inferred
LanguageHaskell2010

Codec.Phaser.UTF8

Description

Phases for decoding bytes to characters using UTF-8

Synopsis

Documentation

utf8_char :: Monoid p => Phase p Word8 o Char Source #

Consume a UTF-8 character from a stream of bytes and return it. Fail on invalid UTF-8.

utf8_stream :: Monoid p => Phase p Word8 Char () Source #

Consume any number of UTF-8 characters and yield them.

utf8_encode :: Monoid p => Phase p Char Word8 () Source #

Consume any number of Characters and yield them as UTF-8 bytes