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.)
(rn_default_decls, src_fvs5)
<- mapFvRn (wrapLocFstM rnDefaultDecl) default_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 {
rn_docs <- mapM rnDocEntity docs ;
let {