summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compiler/coreSyn/CoreSubst.hs2
-rw-r--r--compiler/rename/RnEnv.hs2
-rw-r--r--compiler/simplStg/StgCse.hs2
-rw-r--r--docs/users_guide/glasgow_exts.rst2
4 files changed, 4 insertions, 4 deletions
diff --git a/compiler/coreSyn/CoreSubst.hs b/compiler/coreSyn/CoreSubst.hs
index 640c7f1170..919d9e8cd0 100644
--- a/compiler/coreSyn/CoreSubst.hs
+++ b/compiler/coreSyn/CoreSubst.hs
@@ -723,7 +723,7 @@ The functions that substitute over IdInfo must be pretty lazy, because
they are knot-tied by substRecBndrs.
One case in point was Trac #10627 in which a rule for a function 'f'
-referred to 'f' (at a differnet type) on the RHS. But instead of just
+referred to 'f' (at a different type) on the RHS. But instead of just
substituting in the rhs of the rule, we were calling simpleOptExpr, which
looked at the idInfo for 'f'; result <<loop>>.
diff --git a/compiler/rename/RnEnv.hs b/compiler/rename/RnEnv.hs
index 3aa9472fe6..570c6c0b91 100644
--- a/compiler/rename/RnEnv.hs
+++ b/compiler/rename/RnEnv.hs
@@ -609,7 +609,7 @@ TH we might use the same TH NameU in two different name spaces.
eg (Trac #7241):
$(newName "Foo" >>= \o -> return [DataD [] o [] [RecC o []] [''Show]])
Here we generate a type constructor and data constructor with the same
-unique, but differnt name spaces.
+unique, but different name spaces.
It'd be nicer to rule this out in extendGlobalRdrEnvRn, but that would
mean looking up the OccName in every name-space, just in case, and that
diff --git a/compiler/simplStg/StgCse.hs b/compiler/simplStg/StgCse.hs
index ec4b188aae..6bd6adc7ec 100644
--- a/compiler/simplStg/StgCse.hs
+++ b/compiler/simplStg/StgCse.hs
@@ -26,7 +26,7 @@ which produces this Core:
bar :: forall a. a -> (Either Int a, Either Bool a)
bar @a x = (Right @Int @a x, Right @Bool @a x)
-where the two components of the tuple are differnt terms, and cannot be
+where the two components of the tuple are different terms, and cannot be
commoned up (easily). On the STG level we have
bar [x] = let c1 = Right [x]
diff --git a/docs/users_guide/glasgow_exts.rst b/docs/users_guide/glasgow_exts.rst
index 0a09c7c6fd..6e394e7378 100644
--- a/docs/users_guide/glasgow_exts.rst
+++ b/docs/users_guide/glasgow_exts.rst
@@ -7196,7 +7196,7 @@ precisely the same as type given in the instance head. For example: ::
instance Eq (Elem [e]) => Collects [e] where
-- Choose one of the following alternatives:
type Elem [e] = e -- OK
- type Elem [x] = x -- BAD; '[x]' is differnet to '[e]' from head
+ type Elem [x] = x -- BAD; '[x]' is different to '[e]' from head
type Elem x = x -- BAD; 'x' is different to '[e]'
type Elem [Maybe x] = x -- BAD: '[Maybe x]' is different to '[e]'