basement-0.0.2: Foundation scrap box of array & string

Safe HaskellNone
LanguageHaskell2010

Basement.Types.Char7

Contents

Synopsis

Documentation

newtype Char7 #

ASCII value between 0x0 and 0x7f

Constructors

Char7 

Fields

toChar :: Char7 -> Char #

Convert a Char7 to a unicode code point Char

fromCharMask :: Char -> Char7 #

Convert a Char to a Char7 ignoring all higher bits

fromChar :: Char -> Maybe Char7 #

Try to convert a Char to a Char7

If the code point is non ascii, then Nothing is returned.

fromByteMask :: Word8 -> Char7 #

Convert a Byte to a Char7 ignoring the higher bit

fromByte :: Word8 -> Maybe Char7 #

Try to convert Word8 to a Char7

If the byte got higher bit set, then Nothing is returned.

individual ASCII Characters