Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
obsidiansystems
GHC
Commits
23cb37fa
Commit
23cb37fa
authored
Jul 07, 2000
by
simonpj
Browse files
[project @ 2000-07-07 12:12:48 by simonpj]
Fix duplicate class assertion error msg
parent
6151c960
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/rename/RnSource.lhs
View file @
23cb37fa
...
...
@@ -11,7 +11,7 @@ module RnSource ( rnDecl, rnSourceDecls, rnHsType, rnHsSigType ) where
import RnExpr
import HsSyn
import HsPragmas
import HsTypes ( getTyVarName )
import HsTypes ( getTyVarName
, pprHsContext
)
import RdrName ( RdrName, isRdrDataCon, rdrNameOcc, isRdrTyVar, mkRdrNameWkr )
import RdrHsSyn ( RdrNameContext, RdrNameHsType, RdrNameConDecl,
extractRuleBndrsTyVars, extractHsTyRdrTyVars,
...
...
@@ -977,7 +977,7 @@ dupClassAssertWarn ctxt (assertion : dups)
= sep [hsep [ptext SLIT("Duplicate class assertion"),
quotes (ppr assertion),
ptext SLIT("in the context:")],
nest 4 (ppr ctxt <+> ptext SLIT("..."))]
nest 4 (ppr
HsContext
ctxt <+> ptext SLIT("..."))]
naughtyCCallContextErr (HsPClass clas _)
= sep [ptext SLIT("Can't use class") <+> quotes (ppr clas),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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