blob: 4a969aaa491b4bc84c5eb9979c58591047fa4caa (
plain)
1
2
3
4
5
6
7
|
gadtSyntaxFail002.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 a
(Use ExistentialQuantification or GADTs to allow this)
In the definition of data constructor ‘C2’
In the data type declaration for ‘Foo’
|