ouroboros-consensus-0.21.0.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellSafe-Inferred
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 ∷ (Eq result, Show result, Typeable result) ⇒ BlockQuery blk result → result → SomeResult blk 

Instances

Instances details
Show (SomeResult blk) Source # 
Instance details

Defined in Test.Util.Serialisation.SomeResult

Methods

showsPrecIntSomeResult blk → ShowS #

showSomeResult blk → String #

showList ∷ [SomeResult blk] → ShowS #

Eq (SomeResult blk) Source # 
Instance details

Defined in Test.Util.Serialisation.SomeResult

Methods

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

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