basement-0.0.2: Foundation scrap box of array & string

Safe HaskellNone
LanguageHaskell2010

Basement.Types.Char7

Contents

Synopsis

Documentation

toChar :: Char7 -> Char Source #

Convert a Char7 to a unicode code point Char

fromCharMask :: Char -> Char7 Source #

Convert a Char to a Char7 ignoring all higher bits

fromChar :: Char -> Maybe Char7 Source #

Try to convert a Char to a Char7

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

fromByteMask :: Word8 -> Char7 Source #

Convert a Byte to a Char7 ignoring the higher bit

fromByte :: Word8 -> Maybe Char7 Source #

Try to convert Word8 to a Char7

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

individual ASCII Characters