Add a WARNING pragma
[ghc-hetmet.git] / compiler / parser / HaddockUtils.hs
index a0c8386..abc31e1 100644 (file)
@@ -1,8 +1,8 @@
-{-# OPTIONS_GHC -w #-}
+{-# 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/WorkingConventions#Warnings
+--     http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings
 -- for details
 
 module HaddockUtils where
@@ -47,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