[commit: ghc] master: Comments only (9c3e55b)
git at git.haskell.org
git at git.haskell.org
Tue May 24 08:47:18 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/9c3e55bd029447d9c2cac1c9ca1607a8a803cd79/ghc
>---------------------------------------------------------------
commit 9c3e55bd029447d9c2cac1c9ca1607a8a803cd79
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Mon May 23 16:27:08 2016 +0100
Comments only
>---------------------------------------------------------------
9c3e55bd029447d9c2cac1c9ca1607a8a803cd79
compiler/simplStg/UnariseStg.hs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/compiler/simplStg/UnariseStg.hs b/compiler/simplStg/UnariseStg.hs
index c2d73a5..4c8a665 100644
--- a/compiler/simplStg/UnariseStg.hs
+++ b/compiler/simplStg/UnariseStg.hs
@@ -12,7 +12,8 @@ f (x :: (# Int, Bool #)) = f x + f (# 1, True #)
f (x1 :: Int) (x2 :: Bool) = f x1 x2 + f 1 True
It is important that we do this at the STG level and NOT at the core level
-because it would be very hard to make this pass Core-type-preserving.
+because it would be very hard to make this pass Core-type-preserving. In
+this example the type of 'f' changes, for example.
STG fed to the code generators *must* be unarised because the code generators do
not support unboxed tuple binders natively.
More information about the ghc-commits
mailing list