[commit: ghc] master: A few more typofixes in docs/comments [ci skip] (e839ee2)

git at git.haskell.org git at git.haskell.org
Wed Jun 20 14:32:35 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/e839ee2f91f9bcd390ead98e830b9e1d7d7b9240/ghc

>---------------------------------------------------------------

commit e839ee2f91f9bcd390ead98e830b9e1d7d7b9240
Author: Gabor Greif <ggreif at gmail.com>
Date:   Wed Jun 20 16:00:50 2018 +0200

    A few more typofixes in docs/comments [ci skip]


>---------------------------------------------------------------

e839ee2f91f9bcd390ead98e830b9e1d7d7b9240
 compiler/basicTypes/MkId.hs                              | 2 +-
 compiler/main/SysTools/BaseDir.hs                        | 2 +-
 compiler/typecheck/TcMatches.hs                          | 2 +-
 compiler/utils/Pair.hs                                   | 2 +-
 docs/users_guide/glasgow_exts.rst                        | 2 +-
 libraries/template-haskell/Language/Haskell/TH/Syntax.hs | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/compiler/basicTypes/MkId.hs b/compiler/basicTypes/MkId.hs
index 772bce4..d6a52b4d 100644
--- a/compiler/basicTypes/MkId.hs
+++ b/compiler/basicTypes/MkId.hs
@@ -124,7 +124,7 @@ Note [magicIds]
 ~~~~~~~~~~~~~~~
 The magicIds
 
-  * Are exported from GHC.Maic
+  * Are exported from GHC.Magic
 
   * Can be defined in Haskell (and are, in ghc-prim:GHC/Magic.hs).
     This definition at least generates Haddock documentation for them.
diff --git a/compiler/main/SysTools/BaseDir.hs b/compiler/main/SysTools/BaseDir.hs
index 7cd1998..85635df 100644
--- a/compiler/main/SysTools/BaseDir.hs
+++ b/compiler/main/SysTools/BaseDir.hs
@@ -201,7 +201,7 @@ foreign import WINDOWS_CCONV unsafe "dynamic"
   makeGetFinalPathNameByHandle :: FunPtr GetFinalPath -> GetFinalPath
 #elif defined(darwin_HOST_OS) || defined(linux_HOST_OS)
 -- on unix, this is a bit more confusing.
--- The layout right now is somehting like
+-- The layout right now is something like
 --
 --   /bin/ghc-X.Y.Z <- wrapper script (1)
 --   /bin/ghc       <- symlink to wrapper script (2)
diff --git a/compiler/typecheck/TcMatches.hs b/compiler/typecheck/TcMatches.hs
index e2c29ca..4ddf862 100644
--- a/compiler/typecheck/TcMatches.hs
+++ b/compiler/typecheck/TcMatches.hs
@@ -986,7 +986,7 @@ When typechecking
 we want to typecheck 'bar' in the knowledge that it should be an IO thing,
 pushing info from the context into the RHS.  To do this, we check the
 rebindable syntax first, and push that information into (tcMonoExprNC rhs).
-Otherwise the error shows up when cheking the rebindable syntax, and
+Otherwise the error shows up when checking the rebindable syntax, and
 the expected/inferred stuff is back to front (see Trac #3613).
 
 Note [typechecking ApplicativeStmt]
diff --git a/compiler/utils/Pair.hs b/compiler/utils/Pair.hs
index 08b19be..036dab0 100644
--- a/compiler/utils/Pair.hs
+++ b/compiler/utils/Pair.hs
@@ -18,7 +18,7 @@ data Pair a = Pair { pFst :: a, pSnd :: a }
 -- Note that Pair is a *unary* type constructor
 -- whereas (,) is binary
 
--- The important thing about Pair is that it has a *homogenous*
+-- The important thing about Pair is that it has a *homogeneous*
 -- Functor instance, so you can easily apply the same function
 -- to both components
 instance Functor Pair where
diff --git a/docs/users_guide/glasgow_exts.rst b/docs/users_guide/glasgow_exts.rst
index 1b19b4c..4a860ac 100644
--- a/docs/users_guide/glasgow_exts.rst
+++ b/docs/users_guide/glasgow_exts.rst
@@ -540,7 +540,7 @@ corresponds closely to the underlying bit-encoding of the number.
 In this notation floating point numbers are written using hexadecimal digits,
 and so the digits are interpreted using base 16, rather then the usual 10.
 This means that digits left of the decimal point correspond to positive
-powers of 16, while the ones to the right correspond to negaitve ones.
+powers of 16, while the ones to the right correspond to negative ones.
 
 You may also write an explicit exponent, which is similar to the exponent
 in decimal notation with the following differences:
diff --git a/libraries/template-haskell/Language/Haskell/TH/Syntax.hs b/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
index eb517a9..b6f7c34 100644
--- a/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
+++ b/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
@@ -494,7 +494,7 @@ addForeignSource lang src = do
   runIO $ writeFile path src
   addForeignFilePath lang path
 
--- | Same as 'addForeignSource', but expects to recieve a path pointing to the
+-- | Same as 'addForeignSource', but expects to receive a path pointing to the
 -- foreign file instead of a 'String' of its contents. Consider using this in
 -- conjunction with 'addTempFile'.
 --



More information about the ghc-commits mailing list