Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Foreign.Storable.Record.Tuple
Description
Custom class for storing tuples
and wrapper for storing tuples in standard Storable
class.
These two solutions do not need orphan instances.
The package storable-tuple
makes use of this implementation.
Documentation
Instances
Eq a => Eq (Tuple a) Source # | |
Show a => Show (Tuple a) Source # | |
Storable a => Storable (Tuple a) Source # | |
Defined in Foreign.Storable.Record.Tuple Methods peekElemOff :: Ptr (Tuple a) -> Int -> IO (Tuple a) pokeElemOff :: Ptr (Tuple a) -> Int -> Tuple a -> IO () peekByteOff :: Ptr b -> Int -> IO (Tuple a) pokeByteOff :: Ptr b -> Int -> Tuple a -> IO () |