Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
cd6658d0
Commit
cd6658d0
authored
Jun 16, 2008
by
Ian Lynagh
Browse files
Suggest -XRelaxedPolyRec rather than -fglasgow-exts in an error message
parent
cb8184db
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/typecheck/TcUnify.lhs
View file @
cd6658d0
...
...
@@ -996,7 +996,7 @@ unifyTheta :: TcThetaType -> TcThetaType -> TcM [CoercionI]
unifyTheta theta1 theta2
= do { checkTc (equalLength theta1 theta2)
(vcat [ptext (sLit "Contexts differ in length"),
nest 2 $ parens $ ptext (sLit "Use -
fglasgow-exts
to allow this")])
nest 2 $ parens $ ptext (sLit "Use -
XRelaxedPolyRec
to allow this")])
; uList unifyPred theta1 theta2
}
...
...
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