Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SomeResult blk where
- SomeResult ∷ ∀ result blk. (Eq result, Show result, Typeable result) ⇒ BlockQuery blk result → result → SomeResult blk
Documentation
data SomeResult blk where Source #
To easily generate all the possible result
s 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.
SomeResult ∷ ∀ result blk. (Eq result, Show result, Typeable result) ⇒ BlockQuery blk result → result → SomeResult blk |
Instances
CanMock proto era ⇒ Arbitrary (SomeResult (ShelleyBlock proto era)) Source # | |
Defined in Test.Consensus.Shelley.Generators arbitrary ∷ Gen (SomeResult (ShelleyBlock proto era)) Source # shrink ∷ SomeResult (ShelleyBlock proto era) → [SomeResult (ShelleyBlock proto era)] Source # | |
Show (SomeResult blk) | |
Defined in Test.Util.Serialisation.SomeResult showsPrec ∷ Int → SomeResult blk → ShowS # show ∷ SomeResult blk → String # showList ∷ [SomeResult blk] → ShowS # | |
Eq (SomeResult blk) | |
Defined in Test.Util.Serialisation.SomeResult (==) ∷ SomeResult blk → SomeResult blk → Bool # (/=) ∷ SomeResult blk → SomeResult blk → Bool # |