basement-0.0.12: Foundation scrap box of array & string
Safe HaskellNone
LanguageHaskell2010

Basement.Types.Char7

Synopsis

Documentation

newtype Char7 #

ASCII value between 0x0 and 0x7f

Constructors

Char7 

Fields

Instances

Instances details
Eq Char7 # 
Instance details

Defined in Basement.Types.Char7

Methods

(==) :: Char7 -> Char7 -> Bool #

(/=) :: Char7 -> Char7 -> Bool #

Ord Char7 # 
Instance details

Defined in Basement.Types.Char7

Methods

compare :: Char7 -> Char7 -> Ordering #

(<) :: Char7 -> Char7 -> Bool #

(<=) :: Char7 -> Char7 -> Bool #

(>) :: Char7 -> Char7 -> Bool #

(>=) :: Char7 -> Char7 -> Bool #

max :: Char7 -> Char7 -> Char7 #

min :: Char7 -> Char7 -> Char7 #

Show Char7 # 
Instance details

Defined in Basement.Types.Char7

Methods

showsPrec :: Int -> Char7 -> ShowS #

show :: Char7 -> String #

showList :: [Char7] -> ShowS #

PrimType Char7 # 
Instance details

Defined in Basement.PrimType

Associated Types

type PrimSize Char7 :: Nat #

NormalForm Char7 # 
Instance details

Defined in Basement.NormalForm

Methods

toNormalForm :: Char7 -> () #

type NatNumMaxBound Char7 # 
Instance details

Defined in Basement.Nat

type PrimSize Char7 # 
Instance details

Defined in Basement.PrimType

type PrimSize Char7 = 1

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

Upper / Lower With ASCII