X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Frename%2FRnHsDoc.hs;h=f3d36907f4e4534b564676992670c145ddbcd574;hp=6941da59c162a1dc6270d2fbfd72b75051aaf136;hb=5ad61e1470db6dbc8279569c5ad1cc093f753ac0;hpb=311b1cdfc9b1c311cc53482c461c18cba8885b2a diff --git a/compiler/rename/RnHsDoc.hs b/compiler/rename/RnHsDoc.hs index 6941da5..f3d3690 100644 --- a/compiler/rename/RnHsDoc.hs +++ b/compiler/rename/RnHsDoc.hs @@ -1,7 +1,7 @@ module RnHsDoc ( rnHsDoc, rnLHsDoc, rnMbLHsDoc, rnMbHsDoc ) where import TcRnMonad ( RnM ) -import RnEnv ( dataTcOccs, lookupGreRn ) +import RnEnv ( dataTcOccs, lookupGreRn_maybe ) import HsDoc ( HsDoc(..) ) import RdrName ( RdrName, isRdrDataCon, isRdrTc, gre_name ) @@ -49,7 +49,7 @@ rnHsDoc doc = case doc of DocIdentifier ids -> do let choices = concatMap dataTcOccs ids - mb_gres <- mapM lookupGreRn choices + mb_gres <- mapM lookupGreRn_maybe choices case [gre_name gre | Just gre <- mb_gres] of [] -> return (DocString (ids2string ids)) ids' -> return (DocIdentifier ids')