projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba44023
)
[project @ 2001-01-16 14:16:44 by simonmar]
author
simonmar
<unknown>
Tue, 16 Jan 2001 14:16:44 +0000
(14:16 +0000)
committer
simonmar
<unknown>
Tue, 16 Jan 2001 14:16:44 +0000
(14:16 +0000)
Improve a parser error message.
ghc/compiler/parser/ParseUtil.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/parser/ParseUtil.lhs
b/ghc/compiler/parser/ParseUtil.lhs
index
9610106
..
a040db9
100644
(file)
--- a/
ghc/compiler/parser/ParseUtil.lhs
+++ b/
ghc/compiler/parser/ParseUtil.lhs
@@
-139,7
+139,7
@@
checkDictTy :: RdrNameHsType -> [RdrNameHsType] -> P RdrNameHsType
checkDictTy (HsTyVar t) args@(_:_) | not (isRdrTyVar t)
= returnP (mkHsDictTy t args)
checkDictTy (HsAppTy l r) args = checkDictTy l (r:args)
-checkDictTy _ _ = parseError "Illegal class assertion"
+checkDictTy _ _ = parseError "Malformed context in instance header"
-- Put more comments!
-- Checks that the lhs of a datatype declaration