X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fparser%2FHaddockUtils.hs;h=abc31e1a9d144165e3b8781840c4a3dcfe9a451e;hb=11db0bc8cd2eee13339578ca447c0a2d97f453c3;hp=72ea20d7be02ff4eec738ce600ff88ffd0cb4384;hpb=190f24892156953d73b55401d0467a6f1a88ce5d;p=ghc-hetmet.git diff --git a/compiler/parser/HaddockUtils.hs b/compiler/parser/HaddockUtils.hs index 72ea20d..abc31e1 100644 --- a/compiler/parser/HaddockUtils.hs +++ b/compiler/parser/HaddockUtils.hs @@ -1,3 +1,10 @@ +{-# OPTIONS -w #-} +-- The above warning supression flag is a temporary kludge. +-- While working on this module you are encouraged to remove it and fix +-- any warnings in the module. See +-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings +-- for details + module HaddockUtils where import HsSyn @@ -40,8 +47,8 @@ parseModuleHeader str0 = Nothing -> Right Nothing Just description -> case parseHaddockString . tokenise $ description of - Left mess -> Left ("Cannot parse Description: " ++ mess) - Right doc -> Right (Just doc) + MyLeft mess -> Left ("Cannot parse Description: " ++ mess) + MyRight doc -> Right (Just doc) in case description1 of Left mess -> Left mess