typed-encoding-0.5.2.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 #

pack1 :: Superset "r-UNICODE.D76" y => Enc '[y] c String -> Enc '[y] c Text Source #

simplified version of pack that works on single r- encodings @since 0.5.2.0

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

unpack1 :: Superset "r-UNICODE.D76" y => Enc '[y] c Text -> Enc '[y] c String Source #

simplified version of unpack that works on single r- encodings @since 0.5.2.0

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