ouroboros-consensus:unstable-consensus-testlib
Safe HaskellNone
LanguageHaskell2010

Test.Util.Serialisation.SomeResult

Synopsis

Documentation

data SomeResult blk where Source #

To easily generate all the possible results of the Query GADT, we introduce an existential that also bundles the corresponding Query as evidence. We also capture Eq, Show, and Typeable constraints, as we need them in the tests.

Constructors

SomeResult ∷ ∀ result blk (fp ∷ QueryFootprint). (Eq result, Show result, Typeable result) ⇒ BlockQuery blk fp result → result → SomeResult blk 

Instances

Instances details
Eq (SomeResult blk) Source # 
Instance details

Defined in Test.Util.Serialisation.SomeResult

Methods

(==) ∷ SomeResult blk → SomeResult blk → Bool #

(/=) ∷ SomeResult blk → SomeResult blk → Bool #

Show (SomeResult blk) Source # 
Instance details

Defined in Test.Util.Serialisation.SomeResult

Methods

showsPrec ∷ Int → SomeResult blk → ShowS #

show ∷ SomeResult blk → String #

showList ∷ [SomeResult blk] → ShowS #