Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tobias Decking
GHC
Commits
84010979
Commit
84010979
authored
Oct 22, 2006
by
chak@cse.unsw.edu.au.
Browse files
Improve error messages for indexed types
parent
d5e97410
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/typecheck/TcTyClsDecls.lhs
View file @
84010979
...
...
@@ -1150,7 +1150,7 @@ newtypeFieldErr con_name n_flds
badSigTyDecl tc_name
= vcat [ ptext SLIT("Illegal kind signature") <+>
quotes (ppr tc_name)
, nest 2 (parens $ ptext SLIT("Use -f
glasgow-ext
s to allow indexed types")) ]
, nest 2 (parens $ ptext SLIT("Use -f
indexed-type
s to allow indexed types")) ]
badKindSigCtxt tc_name
= vcat [ ptext SLIT("Illegal context in kind signature") <+>
...
...
@@ -1160,7 +1160,7 @@ badKindSigCtxt tc_name
badIdxTyDecl tc_name
= vcat [ ptext SLIT("Illegal indexed type instance for") <+>
quotes (ppr tc_name)
, nest 2 (parens $ ptext SLIT("Use -f
glasgow-ext
s to allow indexed types")) ]
, nest 2 (parens $ ptext SLIT("Use -f
indexed-type
s to allow indexed types")) ]
badGadtIdxTyDecl tc_name
= vcat [ ptext SLIT("Illegal generalised algebraic data declaration for") <+>
...
...
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