summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/gadtSyntaxFail003.stderr
blob: 589095c8d53f957f022497b230e731530776a9c3 (plain)
1
2
3
4
5
6
7
8
9

gadtSyntaxFail003.hs:8:5: error: [GHC-25709]
    • Data constructor ‘C1’ has existential type variables, a context, or a specialised result type
        C1 :: forall a c b. a -> Int -> c -> Foo b a
    • In the definition of data constructor ‘C1’
      In the data type declaration for ‘Foo’
    Suggested fixes:
       Perhaps you intended to use ExistentialQuantification
       Perhaps you intended to use GADTs