basement-0.0.15: Foundation scrap box of array & string
Safe Haskell None
Language Haskell2010

Basement.Types.Char7

Synopsis

Documentation

newtype Char7 Source #

ASCII value between 0x0 and 0x7f

Constructors

Char7

Instances

Instances details
Eq Char7 Source #
Instance details

Defined in Basement.Types.Char7

Ord Char7 Source #
Instance details

Defined in Basement.Types.Char7

Show Char7 Source #
Instance details

Defined in Basement.Types.Char7

PrimType Char7 Source #
Instance details

Defined in Basement.PrimType

NormalForm Char7 Source #
Instance details

Defined in Basement.NormalForm

type NatNumMaxBound Char7 Source #
Instance details

Defined in Basement.Nat

type PrimSize Char7 Source #
Instance details

Defined in Basement.PrimType

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

Upper / Lower With ASCII