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

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.

  • 2 types
  • 2 values
  • 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

2 declarations

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