phaser-0.1.1.0: Incremental multiple pass parser library.

CopyrightJeremy List
LicenseBSD-3
Maintainerquick.dudley@gmail.com
Safe HaskellNone
LanguageHaskell2010

Codec.Phaser.UTF8

Description

Phases for decoding bytes to characters using UTF-8

Synopsis

Documentation

utf8_char :: 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 :: Phase p Word8 Char () Source #

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