storable-enum-0.0: Wrapper that makes any Enum type Storable

Safe HaskellSafe
LanguageHaskell98

Data.Enum.Storable

Documentation

data T w e Source #

Instances
Bounded e => Bounded (T w e) Source # 
Instance details

Defined in Data.Enum.Storable

Methods

minBound :: T w e #

maxBound :: T w e #

Enum e => Enum (T w e) Source # 
Instance details

Defined in Data.Enum.Storable

Methods

succ :: T w e -> T w e #

pred :: T w e -> T w e #

toEnum :: Int -> T w e #

fromEnum :: T w e -> Int #

enumFrom :: T w e -> [T w e] #

enumFromThen :: T w e -> T w e -> [T w e] #

enumFromTo :: T w e -> T w e -> [T w e] #

enumFromThenTo :: T w e -> T w e -> T w e -> [T w e] #

Eq e => Eq (T w e) Source # 
Instance details

Defined in Data.Enum.Storable

Methods

(==) :: T w e -> T w e -> Bool #

(/=) :: T w e -> T w e -> Bool #

Ord e => Ord (T w e) Source # 
Instance details

Defined in Data.Enum.Storable

Methods

compare :: T w e -> T w e -> Ordering #

(<) :: T w e -> T w e -> Bool #

(<=) :: T w e -> T w e -> Bool #

(>) :: T w e -> T w e -> Bool #

(>=) :: T w e -> T w e -> Bool #

max :: T w e -> T w e -> T w e #

min :: T w e -> T w e -> T w e #

Show e => Show (T w e) Source # 
Instance details

Defined in Data.Enum.Storable

Methods

showsPrec :: Int -> T w e -> ShowS #

show :: T w e -> String #

showList :: [T w e] -> ShowS #

(Storable w, Integral w, Enum e) => Storable (T w e) Source # 
Instance details

Defined in Data.Enum.Storable

Methods

sizeOf :: T w e -> Int #

alignment :: T w e -> Int #

peekElemOff :: Ptr (T w e) -> Int -> IO (T w e) #

pokeElemOff :: Ptr (T w e) -> Int -> T w e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (T w e) #

pokeByteOff :: Ptr b -> Int -> T w e -> IO () #

peek :: Ptr (T w e) -> IO (T w e) #

poke :: Ptr (T w e) -> T w e -> IO () #

fromPlain :: a -> T w a Source #

toPlain :: T w a -> a Source #