summaryrefslogtreecommitdiff
path: root/compiler/specialise
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2018-12-15 12:44:59 +0100
committerGabor Greif <ggreif@gmail.com>2018-12-17 15:07:08 +0100
commitcaf50f631f0216fc11b653b1d0f34e7ca578ec45 (patch)
tree5abd3c388a22e375d211439849a1d136157173a4 /compiler/specialise
parentf99d898ba384b7d3ace7aae71b0125ba645e09cb (diff)
downloadhaskell-caf50f631f0216fc11b653b1d0f34e7ca578ec45.tar.gz
Stomp a few typos and grammaros
Also use 'id'
Diffstat (limited to 'compiler/specialise')
-rw-r--r--compiler/specialise/Specialise.hs10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/specialise/Specialise.hs b/compiler/specialise/Specialise.hs
index 67e57c877b..d5e64e3dc0 100644
--- a/compiler/specialise/Specialise.hs
+++ b/compiler/specialise/Specialise.hs
@@ -940,7 +940,7 @@ specCase env scrut' case_bndr [(con, args, rhs)]
| sc_arg' <- sc_args' ]
-- Extend the substitution for RHS to map the *original* binders
- -- to their floated verions.
+ -- to their floated versions.
mb_sc_flts :: [Maybe DictId]
mb_sc_flts = map (lookupVarEnv clone_env) args'
clone_env = zipVarEnv sc_args' sc_args_flt
@@ -1721,7 +1721,7 @@ This doesn't always work. One example I came across was this:
oneof = choose (1::Int)
-It's a silly exapmle, but we get
+It's a silly example, but we get
choose = /\a. g `cast` co
where choose doesn't have any dict arguments. Thus far I have not
tried to fix this (wait till there's a real example).
@@ -2176,9 +2176,9 @@ dumpUDs bndrs uds@(MkUD { ud_binds = orig_dbs, ud_calls = orig_calls })
dumpBindUDs :: [CoreBndr] -> UsageDetails -> (UsageDetails, Bag DictBind, Bool)
-- Used at a let(rec) binding.
--- We return a boolean indicating whether the binding itself is mentioned
--- is mentioned, directly or indirectly, by any of the ud_calls; in that
--- case we want to float the binding itself;
+-- We return a boolean indicating whether the binding itself is mentioned,
+-- directly or indirectly, by any of the ud_calls; in that case we want to
+-- float the binding itself;
-- See Note [Floated dictionary bindings]
dumpBindUDs bndrs (MkUD { ud_binds = orig_dbs, ud_calls = orig_calls })
= -- pprTrace "dumpBindUDs" (ppr bndrs $$ ppr free_uds $$ ppr dump_dbs) $