summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2017-06-28 16:40:45 +0200
committerGabor Greif <ggreif@gmail.com>2017-06-28 16:40:45 +0200
commit78c80c250021ccb7a84afaabebe0d69f9b9372ee (patch)
treeb174c8c628e66b3c634658f983bde45f6d64d122 /compiler
parent87c5fdbba118db1938d699951a811cc2f6206d4d (diff)
downloadhaskell-78c80c250021ccb7a84afaabebe0d69f9b9372ee.tar.gz
Typos in comments and manual [ci skip]
Diffstat (limited to 'compiler')
-rw-r--r--compiler/basicTypes/DataCon.hs2
-rw-r--r--compiler/coreSyn/CoreArity.hs2
-rw-r--r--compiler/main/DynFlags.hs2
-rw-r--r--compiler/typecheck/TcUnify.hs4
4 files changed, 5 insertions, 5 deletions
diff --git a/compiler/basicTypes/DataCon.hs b/compiler/basicTypes/DataCon.hs
index cc475e29d7..1629f3604b 100644
--- a/compiler/basicTypes/DataCon.hs
+++ b/compiler/basicTypes/DataCon.hs
@@ -1052,7 +1052,7 @@ dataConInstSig
-> [Type] -- Instantiate the *universal* tyvars with these types
-> ([TyVar], ThetaType, [Type]) -- Return instantiated existentials
-- theta and arg tys
--- ^ Instantantiate the universal tyvars of a data con,
+-- ^ Instantiate the universal tyvars of a data con,
-- returning the instantiated existentials, constraints, and args
dataConInstSig (MkData { dcUnivTyVars = univ_tvs, dcExTyVars = ex_tvs
, dcEqSpec = eq_spec, dcOtherTheta = theta
diff --git a/compiler/coreSyn/CoreArity.hs b/compiler/coreSyn/CoreArity.hs
index 3ab71d2ae4..3f429d1ad2 100644
--- a/compiler/coreSyn/CoreArity.hs
+++ b/compiler/coreSyn/CoreArity.hs
@@ -317,7 +317,7 @@ do so; it improves some programs significantly, and increasing convergence
isn't a bad thing. Hence the ABot/ATop in ArityType.
So these two transformations aren't always the Right Thing, and we
-have several tickets reporting unexpected bahaviour resulting from
+have several tickets reporting unexpected behaviour resulting from
this transformation. So we try to limit it as much as possible:
(1) Do NOT move a lambda outside a known-bottom case expression
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index 366406e989..dac3136579 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -4100,7 +4100,7 @@ impliedXFlags
-- * utils/mkUserGuidePart/Options/
-- * docs/users_guide/using.rst
--
--- The first contains the Flag Refrence section, which breifly lists all
+-- The first contains the Flag Reference section, which briefly lists all
-- available flags. The second contains a detailed description of the
-- flags. Both places should contain information whether a flag is implied by
-- -O0, -O or -O2.
diff --git a/compiler/typecheck/TcUnify.hs b/compiler/typecheck/TcUnify.hs
index bfaacef5ad..1cbf5741b2 100644
--- a/compiler/typecheck/TcUnify.hs
+++ b/compiler/typecheck/TcUnify.hs
@@ -900,7 +900,7 @@ In some cases we want to deeply instantiate before filling in
an InferResult, and in some cases not. That's why InferReult
has the ir_inst flag.
-* ir_inst = True: deeply instantantiate
+* ir_inst = True: deeply instantiate
Consider
f x = (*)
@@ -920,7 +920,7 @@ has the ir_inst flag.
Here want to instantiate f's type so that the ?x::Int constraint
gets discharged by the enclosing implicit-parameter binding.
-* ir_inst = False: do not instantantiate
+* ir_inst = False: do not instantiate
Consider this (which uses visible type application):