haskoin-core-1.1.0: Bitcoin & Bitcoin Cash library for Haskell
CopyrightNo rights reserved
LicenseMIT
Maintainerjprupp@protonmail.ch
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Haskoin.Util.Arbitrary.Util

Description

 
Synopsis

Documentation

arbitraryBS1 :: Gen ByteString Source #

Arbitrary non-empty strict ByteString

arbitraryBSn :: Int -> Gen ByteString Source #

Arbitrary strict ByteString of a given length

arbitraryBSS :: Gen ShortByteString Source #

Arbitrary ShortByteString.

arbitraryBSS1 :: Gen ShortByteString Source #

Arbitrary non-empty ShortByteString

arbitraryBSSn :: Int -> Gen ShortByteString Source #

Arbitrary ShortByteString of a given length

arbitraryMaybe :: Gen a -> Gen (Maybe a) Source #

Generate a Maybe from a Gen a

arbitraryNetwork :: Gen Network Source #

Generate an Network

arbitraryUTCTime :: Gen UTCTime Source #

Arbitrary UTCTime that generates dates after 01 Jan 1970 01:00:00 CET

data ReadBox Source #

Constructors

forall a.(Read a, Show a, Eq a, Typeable a) => ReadBox (Gen a) 

data JsonBox Source #

Constructors

forall a.(Show a, Eq a, Typeable a, ToJSON a, FromJSON a) => JsonBox (Gen a) 

data MarshalJsonBox Source #

Constructors

forall s a.(Show a, Show s, Eq a, Typeable a, MarshalJSON s a) => MarshalJsonBox (Gen (s, a)) 

data SerialBox Source #

Constructors

forall a.(Show a, Eq a, Typeable a, Serial a) => SerialBox (Gen a) 

data MarshalBox Source #

Constructors

forall s a.(Show a, Show s, Eq a, Typeable a, Marshal s a) => MarshalBox (Gen (s, a)) 

data IdentityTests Source #

Instances

Instances details
Default IdentityTests Source # 
Instance details

Defined in Haskoin.Util.Arbitrary.Util

Methods

def :: IdentityTests #

testSerial :: (Eq a, Show a, Typeable a, Serial a) => Gen a -> Spec Source #

Generate binary identity tests

testRead :: (Eq a, Read a, Show a, Typeable a) => Gen a -> Spec Source #

Generate Read/Show identity tests

testJson :: (Eq a, Show a, Typeable a, ToJSON a, FromJSON a) => Gen a -> Spec Source #

Generate Data.Aeson identity tests

Orphan instances

Show Ctx Source # 
Instance details

Methods

showsPrec :: Int -> Ctx -> ShowS #

show :: Ctx -> String #

showList :: [Ctx] -> ShowS #