HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulebyteslice-0.2.13.2Haskell2010

Data.Bytes.Text.Utf8

Convert Bytes to and from Text and ShortText.

  • 4 values
valuefromText :: Text -> Bytes
#

Encode Text using UTF-8. Only available when building with text-2.0 and newer. Since Text is backed by a UTF-8 byte sequence, this does not perform a copy.

valuetoText :: Bytes -> Maybe Text
#

Attempt to interpret byte sequence as UTF-8 encoded Text. Only available when building with text-2.1 and newer. Since Text is backed by a UTF-8 byte sequence, this does not perform a copy.