toxcore-c-0.2.12: Haskell bindings to the C reference implementation of Tox
Safe HaskellNone
LanguageHaskell2010

Foreign.C.Enum

Documentation

newtype CEnum a Source #

Constructors

CEnum 

Fields

Instances

Instances details
(Enum a, Show a) => Show (CEnum a) Source # 
Instance details

Defined in Foreign.C.Enum

Methods

showsPrec :: Int -> CEnum a -> ShowS #

show :: CEnum a -> String #

showList :: [CEnum a] -> ShowS #

Storable (CEnum a) Source # 
Instance details

Defined in Foreign.C.Enum

Methods

sizeOf :: CEnum a -> Int #

alignment :: CEnum a -> Int #

peekElemOff :: Ptr (CEnum a) -> Int -> IO (CEnum a) #

pokeElemOff :: Ptr (CEnum a) -> Int -> CEnum a -> IO () #

peekByteOff :: Ptr b -> Int -> IO (CEnum a) #

pokeByteOff :: Ptr b -> Int -> CEnum a -> IO () #

peek :: Ptr (CEnum a) -> IO (CEnum a) #

poke :: Ptr (CEnum a) -> CEnum a -> IO () #

toCEnum :: Enum a => a -> CEnum a Source #

fromCEnum :: Enum a => CEnum a -> a Source #

type CErr err = Ptr (CEnum err) Source #

callErrFun :: (Eq err, Enum err, Bounded err) => (CErr err -> IO r) -> IO (Either err r) Source #