[commit: ghc] master: Typofixes (visiblity -> visibility) (ced2cb5)

git at git.haskell.org git at git.haskell.org
Thu Sep 21 13:12:20 UTC 2017


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

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

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

commit ced2cb5e8fbf4493488d1c336da7b00d174923ce
Author: Ryan Scott <ryan.gl.scott at gmail.com>
Date:   Thu Sep 21 09:08:15 2017 -0400

    Typofixes (visiblity -> visibility)


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

ced2cb5e8fbf4493488d1c336da7b00d174923ce
 compiler/typecheck/TcHsType.hs  | 2 +-
 compiler/typecheck/TcTyDecls.hs | 2 +-
 compiler/types/Class.hs         | 2 +-
 compiler/types/TyCoRep.hs       | 6 +++---
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/compiler/typecheck/TcHsType.hs b/compiler/typecheck/TcHsType.hs
index 709206e..eb44fb4 100644
--- a/compiler/typecheck/TcHsType.hs
+++ b/compiler/typecheck/TcHsType.hs
@@ -1329,7 +1329,7 @@ Here
 and
   T :: forall {k3} k1. forall k3 -> k1 -> k2 -> k3 -> *
 
-See Note [TyVarBndrs, TyVarBinders, TyConBinders, and visiblity]
+See Note [TyVarBndrs, TyVarBinders, TyConBinders, and visibility]
 in TyCoRep.
 
 kcHsTyVarBndrs uses the hsq_dependent field to decide whether
diff --git a/compiler/typecheck/TcTyDecls.hs b/compiler/typecheck/TcTyDecls.hs
index e59c612..6b77cc7 100644
--- a/compiler/typecheck/TcTyDecls.hs
+++ b/compiler/typecheck/TcTyDecls.hs
@@ -782,7 +782,7 @@ mkDefaultMethodType cls _   (GenericDM dm_ty) = mkSigmaTy tv_bndrs [pred] dm_ty
      tv_bndrs  = tyConTyVarBinders cls_bndrs
      -- NB: the Class doesn't have TyConBinders; we reach into its
      --     TyCon to get those.  We /do/ need the TyConBinders because
-     --     we need the correct visiblity: these default methods are
+     --     we need the correct visibility: these default methods are
      --     used in code generated by the the fill-in for missing
      --     methods in instances (TcInstDcls.mkDefMethBind), and
      --     then typechecked.  So we need the right visibilty info
diff --git a/compiler/types/Class.hs b/compiler/types/Class.hs
index 3bc8896..09c256a 100644
--- a/compiler/types/Class.hs
+++ b/compiler/types/Class.hs
@@ -62,7 +62,7 @@ data Class
 
         classTyVars  :: [TyVar],        -- The class kind and type variables;
                                         -- identical to those of the TyCon
-           -- If you want visiblity info, look at the classTyCon
+           -- If you want visibility info, look at the classTyCon
            -- This field is redundant because it's duplicated in the
            -- classTyCon, but classTyVars is used quite often, so maybe
            -- it's a bit faster to cache it here
diff --git a/compiler/types/TyCoRep.hs b/compiler/types/TyCoRep.hs
index 27f177a..a644298 100644
--- a/compiler/types/TyCoRep.hs
+++ b/compiler/types/TyCoRep.hs
@@ -462,8 +462,8 @@ words, if `x` is either a function or a polytype, `x arg` makes sense
 (for an appropriate `arg`).
 
 
-Note [TyVarBndrs, TyVarBinders, TyConBinders, and visiblity]
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+Note [TyVarBndrs, TyVarBinders, TyConBinders, and visibility]
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 * A ForAllTy (used for both types and kinds) contains a TyVarBinder.
   Each TyVarBinder
       TvBndr a tvis
@@ -476,7 +476,7 @@ Note [TyVarBndrs, TyVarBinders, TyConBinders, and visiblity]
   and kind arguments for this TyCon should be visible (explicit) in
   source Haskell.
 
-This table summarises the visiblity rules:
+This table summarises the visibility rules:
 ---------------------------------------------------------------------------------------
 |                                                      Occurrences look like this
 |                             GHC displays type as     in Haskell source code



More information about the ghc-commits mailing list