Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
ea5bdfd5
Commit
ea5bdfd5
authored
May 21, 2013
by
Simon Peyton Jones
Browse files
Improved error message
parent
26eee8d9
Changes
4
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/gadt/gadtSyntaxFail001.stderr
View file @
ea5bdfd5
gadtSyntaxFail001.hs:8:5:
Data constructor ‛C2’ has existential type variables, a context, or a specialised result type
C2 :: forall a. a -> Char -> Foo a Int
(Use -XExistentialQuantification or -XGADTs to allow this)
In the definition of data constructor ‛C2’
In the data declaration for ‛Foo’
testsuite/tests/gadt/gadtSyntaxFail002.stderr
View file @
ea5bdfd5
gadtSyntaxFail002.hs:8:5:
Data constructor ‛C2’ has existential type variables, a context, or a specialised result type
C2 :: forall a. a -> Char -> Foo a a
(Use -XExistentialQuantification or -XGADTs to allow this)
In the definition of data constructor ‛C2’
In the data declaration for ‛Foo’
testsuite/tests/gadt/gadtSyntaxFail003.stderr
View file @
ea5bdfd5
gadtSyntaxFail003.hs:7:5:
Data constructor ‛C1’ has existential type variables, a context, or a specialised result type
C1 :: forall b a c. a -> Int -> c -> Foo b a
(Use -XExistentialQuantification or -XGADTs to allow this)
In the definition of data constructor ‛C1’
In the data declaration for ‛Foo’
testsuite/tests/ghci/scripts/ghci057.stderr
View file @
ea5bdfd5
...
...
@@ -6,12 +6,14 @@
ghci057.hs:3:3:
Data constructor ‛C’ has existential type variables, a context, or a specialised result type
C :: T Int
(Use -XExistentialQuantification or -XGADTs to allow this)
In the definition of data constructor ‛C’
In the data declaration for ‛T’
ghci057.hs:3:3:
Data constructor ‛C’ has existential type variables, a context, or a specialised result type
C :: T Int
(Use -XExistentialQuantification or -XGADTs to allow this)
In the definition of data constructor ‛C’
In the data declaration for ‛T’
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment