Foreign.C.Enum
newtype CEnum a Source #
Constructors
Fields
Defined in Foreign.C.Enum
Methods
showsPrec :: Int -> CEnum a -> ShowS #
show :: CEnum a -> String #
showList :: [CEnum a] -> ShowS #
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 #