typed-encoding-0.4.1.0: Type safe string transformations

Safe HaskellSafe
LanguageHaskell2010

Data.TypedEncoding.Conv.Text.Lazy

Description

Lazy version of Data.TypedEncoding.Conv.Text @since 0.2.2.0

Synopsis

Documentation

pack :: (UnSnoc xs ~ (,) ys y, Superset "r-UNICODE.D76" y, encs ~ RemoveRs ys, AllEncodeInto "r-UNICODE.D76" encs) => Enc xs c String -> Enc xs c Text Source #

unpack :: Enc xs c Text -> Enc xs c String Source #

utf8Promote :: Enc xs c Text -> Enc (Snoc xs "r-UTF8") c Text Source #

Text is automatically "r-UTF8" encoded

utf8Demote :: UnSnoc xs ~ (,) ys "r-UTF8" => Enc xs c Text -> Enc ys c Text Source #

For Text "r-UTF8" is redundant