Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SomeResult blk where
- SomeResult ∷ (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 ∷ (Eq result, Show result, Typeable result) ⇒ BlockQuery blk result → result → SomeResult blk |
Instances
Show (SomeResult blk) Source # | |
Defined in Test.Util.Serialisation.SomeResult showsPrec ∷ Int → SomeResult blk → ShowS # show ∷ SomeResult blk → String # showList ∷ [SomeResult blk] → ShowS # | |
Eq (SomeResult blk) Source # | |
Defined in Test.Util.Serialisation.SomeResult (==) ∷ SomeResult blk → SomeResult blk → Bool # (/=) ∷ SomeResult blk → SomeResult blk → Bool # |