X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FGHC.hs;h=dd9267772bd3df349f1f3eb67e3c62820da146d5;hb=aafdba3bce91afb003f5f50e001e141744837bae;hp=03ad6deaea80ca1e69c8fe47a1c46fcf252676e1;hpb=806ab6331b967d6176b8790a0b1b551ec0e8e2b6;p=ghc-hetmet.git diff --git a/compiler/main/GHC.hs b/compiler/main/GHC.hs index 03ad6de..dd92677 100644 --- a/compiler/main/GHC.hs +++ b/compiler/main/GHC.hs @@ -483,7 +483,10 @@ setGlobalTypeScope session ids -- Parsing Haddock comments parseHaddockComment :: String -> Either String (HsDoc RdrName) -parseHaddockComment string = parseHaddockParagraphs (tokenise string) +parseHaddockComment string = + case parseHaddockParagraphs (tokenise string) of + MyLeft x -> Left x + MyRight x -> Right x -- ----------------------------------------------------------------------------- -- Loading the program