ptr-0.16.2: Abstractions for operations on pointers

Safe HaskellNone
LanguageHaskell2010

Ptr.Poke

Synopsis

Documentation

data Poke input Source #

Specification of a sized and errorless writing action to a pointer.

Constructors

Poke !Int !(Ptr Word8 -> input -> IO ()) 

Instances

Divisible Poke Source # 

Methods

divide :: (a -> (b, c)) -> Poke b -> Poke c -> Poke a #

conquer :: Poke a #

Contravariant Poke Source # 

Methods

contramap :: (a -> b) -> Poke b -> Poke a #

(>$) :: b -> Poke b -> Poke a #

pokeAndPeek :: PokeAndPeek input output -> Poke input Source #