diff options
author | Gabor Greif <ggreif@gmail.com> | 2017-10-30 12:21:49 +0100 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2017-10-30 12:41:57 +0100 |
commit | 201b5aa65109e09953caa1dc1774b75fabbf61b0 (patch) | |
tree | 108559ddb56de20639f15b20e691ac6d03424d12 /compiler/specialise | |
parent | 53700a9de48a3fb15015bd60462878fc9a2c0548 (diff) | |
download | haskell-201b5aa65109e09953caa1dc1774b75fabbf61b0.tar.gz |
Catch a few more typos in comments
Diffstat (limited to 'compiler/specialise')
-rw-r--r-- | compiler/specialise/SpecConstr.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/specialise/SpecConstr.hs b/compiler/specialise/SpecConstr.hs index 6115a031ec..d54c1ea289 100644 --- a/compiler/specialise/SpecConstr.hs +++ b/compiler/specialise/SpecConstr.hs @@ -516,7 +516,7 @@ for nested bindings. (So really it should be passed around explicitly and not stored in ScEnv.) Trac #14379 turned out to be caused by f SPEC x = let g1 x = ... in ... -We force-specialise f (becuase of the SPEC), but that generates a specialised +We force-specialise f (because of the SPEC), but that generates a specialised copy of g1 (as well as the original). Alas g1 has a nested binding g2; and in each copy of g1 we get an unspecialised and specialised copy of g2; and so on. Result, exponential. So the force-spec flag now only applies to one @@ -526,7 +526,7 @@ Mechanism for this one-level-only thing: - Switch it on at the call to specRec, in scExpr and scTopBinds - Switch it off when doing the RHSs; - this can be done very conveneniently in decreaseSpecCount + this can be done very conveniently in decreaseSpecCount What alternatives did I consider? |