Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- with :: key -> (key -> Spec) -> Spec
- storeAndThenLoad :: EndianStore a => a -> IO a
- allocCast :: BYTES Int -> (Ptr a -> IO c) -> IO c
- storeAdjustAndPeek :: EndianStore a => a -> IO a
- pokeAdjustAndLoad :: EndianStore a => a -> IO a
- basicEndianSpecs :: (EndianStore a, Show a, Eq a, Arbitrary a) => a -> Spec
- shortened :: String -> String
- genEncodable :: (Encodable a, Storable a) => Gen a
- blocks :: Primitive prim => Proxy prim -> Gen ByteString
- feed :: (Testable pr, Show a) => Gen a -> (a -> IO pr) -> Property
- repeated :: Monoid m => m -> Int -> m
Documentation
storeAndThenLoad :: EndianStore a => a -> IO a Source #
Store and the load the given value.
storeAdjustAndPeek :: EndianStore a => a -> IO a Source #
pokeAdjustAndLoad :: EndianStore a => a -> IO a Source #
basicEndianSpecs :: (EndianStore a, Show a, Eq a, Arbitrary a) => a -> Spec Source #
blocks :: Primitive prim => Proxy prim -> Gen ByteString Source #
Generate bytestrings that are multiples of block size of a primitive.