byteslice-0.2.6.0: Slicing managed and unmanaged memory
Safe HaskellNone
LanguageHaskell2010

Data.Bytes.Text.Ascii

Description

This module treats Bytes data as holding ASCII text. Providing bytes outside the ASCII range (U+0000 -- U+007F) may cause a failure or unspecified results, but such bytes will never be inspected.

For functions that can operate on ASCII-compatible encodings, see AsciiExt.

Synopsis

Documentation

fromString :: String -> Bytes Source #

Convert a String consisting of only characters in the ASCII block to a byte sequence. Any character with a codepoint above U+007F is replaced by U+0000.