HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulebyteslice-0.2.15.0Haskell2010

Data.Bytes.Text.Utf8

Convert Bytes to and from Text and ShortText.

Synopsis
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.