basement-0.0.11: Foundation scrap box of array & string

Safe HaskellNone
LanguageHaskell2010

Basement.Types.Char7

Contents

Synopsis

Documentation

newtype Char7 Source #

ASCII value between 0x0 and 0x7f

Constructors

Char7 

Fields

Instances
Eq Char7 Source # 
Instance details

Defined in Basement.Types.Char7

Methods

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

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

Ord Char7 Source # 
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 Source # 
Instance details

Defined in Basement.Types.Char7

Methods

showsPrec :: Int -> Char7 -> ShowS #

show :: Char7 -> String #

showList :: [Char7] -> ShowS #

PrimType Char7 Source # 
Instance details

Defined in Basement.PrimType

Associated Types

type PrimSize Char7 :: Nat Source #

NormalForm Char7 Source # 
Instance details

Defined in Basement.NormalForm

Methods

toNormalForm :: Char7 -> () Source #

type NatNumMaxBound Char7 Source # 
Instance details

Defined in Basement.Nat

type PrimSize Char7 Source # 
Instance details

Defined in Basement.PrimType

type PrimSize Char7 = 1

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