summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/gadtSyntaxFail002.stderr
blob: f144b2e24785b72ff8f20df2b9f73c2d949b0900 (plain)
1
2
3
4
5
6
7

gadtSyntaxFail002.hs:9:5: error:
    • Data constructor ‘C2’ has existential type variables, a context, or a specialised result type
        C2 :: forall a. a -> Char -> Foo a a
        (Enable ExistentialQuantification or GADTs to allow this)
    • In the definition of data constructor ‘C2’
      In the data type declaration for ‘Foo’