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

Modulebasement-0.0.16Haskell2010

Basement.Types.AsciiString

A AsciiString type backed by a ASCII encoded byte array and all the necessary functions to manipulate the string.

Contents
  1. Binary conversion
Synopsis
  • Packagebasement-0.0.16
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceAsciiString.hs
newtypenewtype AsciiString

Opaque packed array of characters in the ASCII encoding

Instances10IsList, Eq, Ord, Show, IsString, Semigroup, …

Binary conversion

Convert a Byte Array representing ASCII data directly to an AsciiString without checking for ASCII validity

If the input contains invalid Char7 value (anything above 0x7f), it will trigger runtime async errors when processing data.

In doubt, use fromBytes