summaryrefslogtreecommitdiff
path: root/compiler/profiling
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-04-24 12:47:54 +0000
committerIan Lynagh <igloo@earth.li>2009-04-24 12:47:54 +0000
commit831a35dd00faff195cf938659c2dd736192b865f (patch)
tree09b90239d250dca8fa8364c0daa80bbcef9c095c /compiler/profiling
parent7936b988d6d0a5f9a9b439c7d4a6adf616ddb9b5 (diff)
downloadhaskell-831a35dd00faff195cf938659c2dd736192b865f.tar.gz
Require a bang pattern when unlifted types are where/let bound; #3182
For now we only get a warning, rather than an error, because the alex and happy templates don't follow the new rules yet.
Diffstat (limited to 'compiler/profiling')
-rw-r--r--compiler/profiling/CostCentre.lhs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/profiling/CostCentre.lhs b/compiler/profiling/CostCentre.lhs
index dc93a1fcbb..aff29d8109 100644
--- a/compiler/profiling/CostCentre.lhs
+++ b/compiler/profiling/CostCentre.lhs
@@ -300,8 +300,8 @@ cmpCostCentre (NormalCC {cc_name = n1, cc_mod = m1, cc_is_caf = c1})
cmpCostCentre other_1 other_2
= let
- tag1 = tag_CC other_1
- tag2 = tag_CC other_2
+ !tag1 = tag_CC other_1
+ !tag2 = tag_CC other_2
in
if tag1 <# tag2 then LT else GT
where