summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorsimonpj@microsoft.com <unknown>2009-11-03 15:48:11 +0000
committersimonpj@microsoft.com <unknown>2009-11-03 15:48:11 +0000
commiteeef817a869bdbfa8820608be081f133dad71071 (patch)
treecd11384c39ee0c9f1ea92fbd4c638b807d87e739 /compiler
parent45f9e9972d725b01a62e018a22b6b77c35ae850f (diff)
downloadhaskell-eeef817a869bdbfa8820608be081f133dad71071.tar.gz
Comment only
Diffstat (limited to 'compiler')
-rw-r--r--compiler/deSugar/DsExpr.lhs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/deSugar/DsExpr.lhs b/compiler/deSugar/DsExpr.lhs
index 11fddf57af..d8bd7cdeea 100644
--- a/compiler/deSugar/DsExpr.lhs
+++ b/compiler/deSugar/DsExpr.lhs
@@ -656,6 +656,7 @@ dsExplicitList elt_ty xs
; let (dynamic_prefix, static_suffix) = spanTail is_static xs'
; if opt_SimpleListLiterals -- -fsimple-list-literals
|| not (dopt Opt_EnableRewriteRules dflags) -- Rewrite rules off
+ -- Don't generate a build if there are no rules to eliminate it!
|| null dynamic_prefix -- Avoid build (\c n. foldr c n xs)!
then return $ mkListExpr elt_ty xs'
else mkBuildExpr elt_ty (mkSplitExplicitList dynamic_prefix static_suffix) }