summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2017-03-17 10:20:42 +0100
committerGabor Greif <ggreif@gmail.com>2017-03-17 10:20:42 +0100
commit7a38783b72f86afda14ada2155e63491ced2e7de (patch)
tree72982f34f101d023a6c54da9ae627084001d6dff /compiler
parent138434fbef32ec86733747bdbc57f6da73cad500 (diff)
downloadhaskell-7a38783b72f86afda14ada2155e63491ced2e7de.tar.gz
Typos in manual and comments [ci skip]
Diffstat (limited to 'compiler')
-rw-r--r--compiler/coreSyn/CoreSubst.hs4
-rw-r--r--compiler/simplCore/SimplEnv.hs2
-rw-r--r--compiler/typecheck/TcGenFunctor.hs2
-rw-r--r--compiler/vectorise/Vectorise/Utils/Base.hs4
4 files changed, 6 insertions, 6 deletions
diff --git a/compiler/coreSyn/CoreSubst.hs b/compiler/coreSyn/CoreSubst.hs
index 590d870946..f2485f3863 100644
--- a/compiler/coreSyn/CoreSubst.hs
+++ b/compiler/coreSyn/CoreSubst.hs
@@ -1188,7 +1188,7 @@ simple_out_bind_pair env in_bndr mb_out_bndr out_rhs
{- Note [Exported Ids and trivial RHSs]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-We obviously do no want to unconditinally inline an Id that is exported.
+We obviously do not want to unconditionally inline an Id that is exported.
In SimplUtils, Note [Top level and postInlineUnconditionally], we
explain why we don't inline /any/ top-level things unconditionally, even
trivial ones. But we do here! Why? In the simple optimiser
@@ -1197,7 +1197,7 @@ trivial ones. But we do here! Why? In the simple optimiser
* We do no call-site inlining
Those differences obviate the reasons for not inlining a trivial rhs,
-and increase the benefit for doing so. So we unconditaionlly inline trivial
+and increase the benefit for doing so. So we unconditionally inline trivial
rhss here.
-}
diff --git a/compiler/simplCore/SimplEnv.hs b/compiler/simplCore/SimplEnv.hs
index 137964661b..a1a973e212 100644
--- a/compiler/simplCore/SimplEnv.hs
+++ b/compiler/simplCore/SimplEnv.hs
@@ -249,7 +249,7 @@ occurrences of 'wild-id' (with wildCardKey). The easy
way to do that is to start of with a representative
Id in the in-scope set
-There can be be *occurrences* of wild-id. For example,
+There can be *occurrences* of wild-id. For example,
MkCore.mkCoreApp transforms
e (a /# b) --> case (a /# b) of wild { DEFAULT -> e wild }
This is ok provided 'wild' isn't free in 'e', and that's the delicate
diff --git a/compiler/typecheck/TcGenFunctor.hs b/compiler/typecheck/TcGenFunctor.hs
index 49129bf9a8..e7bf394ba1 100644
--- a/compiler/typecheck/TcGenFunctor.hs
+++ b/compiler/typecheck/TcGenFunctor.hs
@@ -860,7 +860,7 @@ constructor has the same type as the last type parameter:
Only E1's argument is an occurrence of a universally quantified type variable
that is syntactically equivalent to the last type parameter, so only E1's
-argument will be be folded over in a derived Foldable instance.
+argument will be folded over in a derived Foldable instance.
See Trac #10447 for the original discussion on this feature. Also see
https://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/DeriveFunctor
diff --git a/compiler/vectorise/Vectorise/Utils/Base.hs b/compiler/vectorise/Vectorise/Utils/Base.hs
index 071fab961c..42271091d7 100644
--- a/compiler/vectorise/Vectorise/Utils/Base.hs
+++ b/compiler/vectorise/Vectorise/Utils/Base.hs
@@ -222,7 +222,7 @@ pdataReprTyCon ty
--
pdataReprTyConExact :: TyCon -> VM TyCon
pdataReprTyConExact tycon
- = do { -- look up the representation tycon; if there is a match at all, it will be be exact
+ = do { -- look up the representation tycon; if there is a match at all, it will be exact
; -- (i.e.,' _tys' will be distinct type variables)
; (ptycon, _tys) <- pdataReprTyCon (tycon `mkTyConApp` mkTyVarTys (tyConTyVars tycon))
; return ptycon
@@ -235,7 +235,7 @@ pdataReprTyConExact tycon
--
pdatasReprTyConExact :: TyCon -> VM TyCon
pdatasReprTyConExact tycon
- = do { -- look up the representation tycon; if there is a match at all, it will be be exact
+ = do { -- look up the representation tycon; if there is a match at all, it will be exact
; (FamInstMatch { fim_instance = ptycon }) <- pdatasReprTyCon (tycon `mkTyConApp` mkTyVarTys (tyConTyVars tycon))
; return $ dataFamInstRepTyCon ptycon
}