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

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