ouroboros-consensus-0.18.0.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Util.WithEq

Synopsis

Documentation

newtype Id Source #

Constructors

Id Word 

Instances

Instances details
Bounded Id Source # 
Instance details

Defined in Test.Util.WithEq

Methods

minBoundId #

maxBoundId #

Enum Id Source # 
Instance details

Defined in Test.Util.WithEq

Methods

succIdId #

predIdId #

toEnumIntId #

fromEnumIdInt #

enumFromId → [Id] #

enumFromThenIdId → [Id] #

enumFromToIdId → [Id] #

enumFromThenToIdIdId → [Id] #

Generic Id Source # 
Instance details

Defined in Test.Util.WithEq

Associated Types

type Rep IdTypeType #

Methods

fromIdRep Id x #

toRep Id x → Id #

Num Id Source # 
Instance details

Defined in Test.Util.WithEq

Methods

(+)IdIdId #

(-)IdIdId #

(*)IdIdId #

negateIdId #

absIdId #

signumIdId #

fromIntegerIntegerId #

Show Id Source # 
Instance details

Defined in Test.Util.WithEq

Methods

showsPrecIntIdShowS #

showIdString #

showList ∷ [Id] → ShowS #

Eq Id Source # 
Instance details

Defined in Test.Util.WithEq

Methods

(==)IdIdBool #

(/=)IdIdBool #

Ord Id Source # 
Instance details

Defined in Test.Util.WithEq

Methods

compareIdIdOrdering #

(<)IdIdBool #

(<=)IdIdBool #

(>)IdIdBool #

(>=)IdIdBool #

maxIdIdId #

minIdIdId #

type Rep Id Source # 
Instance details

Defined in Test.Util.WithEq

type Rep Id = D1 ('MetaData "Id" "Test.Util.WithEq" "ouroboros-consensus-0.18.0.0-inplace-unstable-consensus-testlib" 'True) (C1 ('MetaCons "Id" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word)))

data WithEq a Source #

Use this type to add an Eq instance for types that don't have one or for which one doesn't make sense, but an Eq instance is needed for testing purposes.

E.g., Iterator needs an Eq instance in the q-s-m tests

Constructors

WithEq 

Fields

Instances

Instances details
Generic (WithEq a) Source # 
Instance details

Defined in Test.Util.WithEq

Associated Types

type Rep (WithEq a) ∷ TypeType #

Methods

fromWithEq a → Rep (WithEq a) x #

toRep (WithEq a) x → WithEq a #

Show a ⇒ Show (WithEq a) Source # 
Instance details

Defined in Test.Util.WithEq

Methods

showsPrecIntWithEq a → ShowS #

showWithEq a → String #

showList ∷ [WithEq a] → ShowS #

Eq (WithEq a) Source # 
Instance details

Defined in Test.Util.WithEq

Methods

(==)WithEq a → WithEq a → Bool #

(/=)WithEq a → WithEq a → Bool #

type Rep (WithEq a) Source # 
Instance details

Defined in Test.Util.WithEq

type Rep (WithEq a) = D1 ('MetaData "WithEq" "Test.Util.WithEq" "ouroboros-consensus-0.18.0.0-inplace-unstable-consensus-testlib" 'False) (C1 ('MetaCons "WithEq" 'PrefixI 'True) (S1 ('MetaSel ('Just "getId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Id) :*: S1 ('MetaSel ('Just "unWithEq") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a)))