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:
c305b14
)
Bale out before renamer errors are duplicated
author
simonpj@microsoft.com
<unknown>
Fri, 6 Oct 2006 14:02:50 +0000
(14:02 +0000)
committer
simonpj@microsoft.com
<unknown>
Fri, 6 Oct 2006 14:02:50 +0000
(14:02 +0000)
With the new Haddock patch, renamer errors can be duplicated;
so we want to bale out before doing the Haddock stuff if errors
are found.
(E.g test mod67 shows this up.)
compiler/rename/RnSource.lhs
patch
|
blob
|
history
diff --git
a/compiler/rename/RnSource.lhs
b/compiler/rename/RnSource.lhs
index
670cfc8
..
993db64
100644
(file)
--- a/
compiler/rename/RnSource.lhs
+++ b/
compiler/rename/RnSource.lhs
@@
-114,6
+114,10
@@
rnSrcDecls (HsGroup { hs_valds = val_decls,
(rn_default_decls, src_fvs5)
<- mapFvRn (wrapLocFstM rnDefaultDecl) default_decls ;
+ -- At this point, stop if we have found errors. Otherwise
+ -- the rnDocEntity stuff reports the errors again.
+ failIfErrsM ;
+
rn_docs <- mapM rnDocEntity docs ;
let {