[commit: ghc] master: Typos in comments (8f81af9)

git at git.haskell.org git at git.haskell.org
Fri Jul 31 19:06:25 UTC 2015


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

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

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

commit 8f81af9a133d443720f597ba81ac5a2c5fcc2c3d
Author: Gabor Greif <ggreif at gmail.com>
Date:   Fri Jul 31 00:37:34 2015 +0200

    Typos in comments


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

8f81af9a133d443720f597ba81ac5a2c5fcc2c3d
 compiler/basicTypes/Id.hs          | 2 +-
 compiler/coreSyn/TrieMap.hs        | 2 +-
 compiler/typecheck/TcInteract.hs   | 2 +-
 compiler/typecheck/TcTyClsDecls.hs | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/compiler/basicTypes/Id.hs b/compiler/basicTypes/Id.hs
index cebf6d0..968b541 100644
--- a/compiler/basicTypes/Id.hs
+++ b/compiler/basicTypes/Id.hs
@@ -204,7 +204,7 @@ setIdInfo id info = info `seq` (lazySetIdInfo id info)
 modifyIdInfo :: (IdInfo -> IdInfo) -> Id -> Id
 modifyIdInfo fn id = setIdInfo id (fn (idInfo id))
 
--- maybeModifyIdInfo tries to avoid unnecesary thrashing
+-- maybeModifyIdInfo tries to avoid unnecessary thrashing
 maybeModifyIdInfo :: Maybe IdInfo -> Id -> Id
 maybeModifyIdInfo (Just new_info) id = lazySetIdInfo id new_info
 maybeModifyIdInfo Nothing         id = id
diff --git a/compiler/coreSyn/TrieMap.hs b/compiler/coreSyn/TrieMap.hs
index dad00e1..b437db9 100644
--- a/compiler/coreSyn/TrieMap.hs
+++ b/compiler/coreSyn/TrieMap.hs
@@ -377,7 +377,7 @@ Note [Empty case alternatives]
   which is utterly wrong (Trac #6097)
 
 We could compare the return type regardless, but the wildly common case
-is that it's unnecesary, so we have two fields (cm_case and cm_ecase)
+is that it's unnecessary, so we have two fields (cm_case and cm_ecase)
 for the two possibilities.  Only cm_ecase looks at the type.
 
 See also Note [Empty case alternatives] in CoreSyn.
diff --git a/compiler/typecheck/TcInteract.hs b/compiler/typecheck/TcInteract.hs
index 6be3a2c..0684fdf 100644
--- a/compiler/typecheck/TcInteract.hs
+++ b/compiler/typecheck/TcInteract.hs
@@ -605,7 +605,7 @@ we keep?  More subtle than you might think!
             the Ord dictionary.
 
   * Finally, when there is still a choice, use IRKeep rather than
-    IRReplace, to avoid unnecesary munging of the inert set.
+    IRReplace, to avoid unnecessary munging of the inert set.
 
 Doing the depth-check for implicit parameters, rather than making the work item
 always overrride, is important.  Consider
diff --git a/compiler/typecheck/TcTyClsDecls.hs b/compiler/typecheck/TcTyClsDecls.hs
index b7a959e..2c18d5e 100644
--- a/compiler/typecheck/TcTyClsDecls.hs
+++ b/compiler/typecheck/TcTyClsDecls.hs
@@ -578,7 +578,7 @@ Then:
     the *global* env to get the TyCon. But we must be careful not to
     force the TyCon or we'll get a loop.
 
-This fancy footwork (with two bindings for T) is only necesary for the
+This fancy footwork (with two bindings for T) is only necessary for the
 TyCons or Classes of this recursive group.  Earlier, finished groups,
 live in the global env only.
 



More information about the ghc-commits mailing list