summaryrefslogtreecommitdiff
path: root/compiler/deSugar/DsGRHSs.lhs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-01-24 14:18:00 +0000
committerIan Lynagh <igloo@earth.li>2008-01-24 14:18:00 +0000
commit6c7b41cc2b24f533697a62bf1843507ae043fc97 (patch)
treead812ae956b6381f85a3cedf0aa07e20436efd6b /compiler/deSugar/DsGRHSs.lhs
parent80ef1f06253f1a20a63816c295e180e47cd9a347 (diff)
downloadhaskell-6c7b41cc2b24f533697a62bf1843507ae043fc97.tar.gz
Fix the build
Work around various problems caused by some of the monadification patches not being applied.
Diffstat (limited to 'compiler/deSugar/DsGRHSs.lhs')
-rw-r--r--compiler/deSugar/DsGRHSs.lhs6
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/deSugar/DsGRHSs.lhs b/compiler/deSugar/DsGRHSs.lhs
index db5cc0cf8d..70a3724484 100644
--- a/compiler/deSugar/DsGRHSs.lhs
+++ b/compiler/deSugar/DsGRHSs.lhs
@@ -33,8 +33,6 @@ import PrelNames
import Name
import SrcLoc
-import Control.Monad ((>=>))
-
\end{code}
@dsGuarded@ is used for both @case@ expressions and pattern bindings.
@@ -142,11 +140,11 @@ isTrueLHsExpr (L _ (HsVar v)) | v `hasKey` otherwiseIdKey
= Just return
-- trueDataConId doesn't have the same unique as trueDataCon
isTrueLHsExpr (L loc (HsTick ix frees e))
- | Just ticks <- isTrueLHsExpr e = Just (ticks >=> mkTickBox ix frees)
+ | Just ticks <- isTrueLHsExpr e = Just (\x -> ticks x >>= mkTickBox ix frees)
-- This encodes that the result is constant True for Hpc tick purposes;
-- which is specifically what isTrueLHsExpr is trying to find out.
isTrueLHsExpr (L loc (HsBinTick ixT _ e))
- | Just ticks <- isTrueLHsExpr e = Just (ticks >=> mkTickBox ixT [])
+ | Just ticks <- isTrueLHsExpr e = Just (\x -> ticks x >>= mkTickBox ixT [])
isTrueLHsExpr (L _ (HsPar e)) = isTrueLHsExpr e
isTrueLHsExpr other = Nothing
\end{code}