blob: 8a75e9f358a9fdc5409747cd6eb0828ef978b09b (
plain)
1
2
3
4
5
6
7
8
9
|
gadtSyntaxFail002.hs:9:5: error: [GHC-25709]
• Data constructor ‘C2’ has existential type variables, a context, or a specialised result type
C2 :: forall a. a -> Char -> Foo a a
• In the definition of data constructor ‘C2’
In the data type declaration for ‘Foo’
Suggested fixes:
Perhaps you intended to use ExistentialQuantification
Perhaps you intended to use GADTs
|