From 334a6323edaec65fc22c5d872a7050a5266ec470 Mon Sep 17 00:00:00 2001 From: "simonpj@microsoft.com" Date: Wed, 24 Oct 2007 13:48:28 +0000 Subject: [PATCH] Explicit pattern match in default case of addTickLHsBind --- compiler/deSugar/Coverage.lhs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/compiler/deSugar/Coverage.lhs b/compiler/deSugar/Coverage.lhs index 976b47f..7b58a95 100644 --- a/compiler/deSugar/Coverage.lhs +++ b/compiler/deSugar/Coverage.lhs @@ -195,12 +195,8 @@ addTickLHsBind (L pos (pat@(PatBind { pat_rhs = rhs }))) = do -} return $ L pos $ pat { pat_rhs = rhs' } -{- only internal stuff, not from source, uses VarBind, so we ignore it. -addTickLHsBind (VarBind var_id var_rhs) = do - var_rhs' <- addTickLHsExpr var_rhs - return $ VarBind var_id var_rhs' --} -addTickLHsBind other = return other +-- Only internal stuff, not from source, uses VarBind, so we ignore it. +addTickLHsBind var_bind@(L _ (VarBind {})) = return var_bind -- Add a tick to the expression no matter what it is. There is one exception: -- for the debugger, if the expression is a 'let', then we don't want to add -- 1.7.10.4