summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2007-10-03 17:34:48 +0000
committerSimon Marlow <simonmar@microsoft.com>2007-10-03 17:34:48 +0000
commit5e04af6de2dd1d86f6bf0599420e32aaa776d055 (patch)
tree1a1dff242775e05ebbc4841803583e454132fb78 /compiler
parent5862b2c52a1d678ef54ddbbdbcec93999bc247cc (diff)
downloadhaskell-5e04af6de2dd1d86f6bf0599420e32aaa776d055.tar.gz
warning removal
Diffstat (limited to 'compiler')
-rw-r--r--compiler/basicTypes/IdInfo.lhs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/basicTypes/IdInfo.lhs b/compiler/basicTypes/IdInfo.lhs
index 55d011eaa3..6b43c68780 100644
--- a/compiler/basicTypes/IdInfo.lhs
+++ b/compiler/basicTypes/IdInfo.lhs
@@ -704,11 +704,11 @@ zapLamInfo info@(IdInfo {occInfo = occ, newDemandInfo = demand})
-- The "unsafe" occ info is the ones that say I'm not in a lambda
-- because that might not be true for an unsaturated lambda
is_safe_occ (OneOcc in_lam _ _) = in_lam
- is_safe_occ other = True
+ is_safe_occ _other = True
safe_occ = case occ of
OneOcc _ once int_cxt -> OneOcc insideLam once int_cxt
- other -> occ
+ _other -> occ
is_safe_dmd Nothing = True
is_safe_dmd (Just dmd) = not (isStrictDmd dmd)