[commit: ghc] : Remove warning (480ac43)

Max Bolingbroke <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : 

http://hackage.haskell.org/trac/ghc/changeset/480ac43ed16370c33f3ecf575d7aabad4842b49a

>---------------------------------------------------------------

commit 480ac43ed16370c33f3ecf575d7aabad4842b49a
Author: Max Bolingbroke <[email protected]>
Date:   Mon Jan 16 16:15:39 2012 +0000

    Remove warning

>---------------------------------------------------------------

 compiler/supercompile/Supercompile/Drive/Match.hs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/compiler/supercompile/Supercompile/Drive/Match.hs b/compiler/supercompile/Supercompile/Drive/Match.hs
index a28a27b..dd13f30 100644
--- a/compiler/supercompile/Supercompile/Drive/Match.hs
+++ b/compiler/supercompile/Supercompile/Drive/Match.hs
@@ -75,8 +75,8 @@ guard _   True  = return ()
 guard msg False = fail msg
 
 runMatch :: Match a -> Maybe a
-runMatch (Match (Right x))  = Just x
-runMatch (Match (Left msg)) = {- trace ("match " ++ msg) -} Nothing
+runMatch (Match (Right x))   = Just x
+runMatch (Match (Left _msg)) = {- trace ("match " ++ msg) -} Nothing
 --runMatch = unMatch
 
 matchRnEnv2 :: (a -> FreeVars) -> a -> a -> RnEnv2
@@ -537,7 +537,7 @@ matchPureHeap rn2 init_free_eqs h_l h_r
                                                                                                  | x `elemVarSet` used -> Nothing
                                                                                                  | otherwise           -> Just (used `extendVarSet` x, annee e'))
 
-            failLoop rest = fail $ "matchLoop" ++ showPpr lr ++ ": " ++ rest
+            failLoop rest = fail $ "matchLoop: " ++ showPpr lr ++ ": " ++ rest
             go_template mextras extra_free_eqs used_l' used_r' = do
                 -- Don't forget to match types/unfoldings of binders as well:
                 bndr_free_eqs <- mextras
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.