flat-0.4.4.0.0.0.0.2: Principled and efficient bit-oriented binary serialization.
Safe Haskell None
Language Haskell2010

Flat.Encoder.Prim

Description

Encoding Primitives

Synopsis

Documentation

eUTF16F :: Text -> Prim Source #

Encode text as UTF16 and encode the result as an array of bytes Efficient, as Text is already internally encoded as UTF16.

eUTF8F :: Text -> Prim Source #

Encode text as UTF8 and encode the result as an array of bytes PROB: encodeUtf8 calls a C primitive, not compatible with GHCJS (fixed in latest versions of GHCJS?)

Exported for testing only