summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Scott <ryan.gl.scott@gmail.com>2018-05-24 10:37:35 -0400
committerRyan Scott <ryan.gl.scott@gmail.com>2018-05-24 10:37:35 -0400
commit5ca623a5a06b96478efe0ac6e37bae4789c1d1c0 (patch)
tree6ca32499f67ff3647b0db2935ca8dd6bfdd70b30
parent979f085c4f87a93f48d6b567076d3c556d490fa8 (diff)
downloadhaskell-5ca623a5a06b96478efe0ac6e37bae4789c1d1c0.tar.gz
Minor typos
-rw-r--r--compiler/typecheck/TcDerivInfer.hs4
-rw-r--r--compiler/typecheck/TcEnv.hs4
2 files changed, 4 insertions, 4 deletions
diff --git a/compiler/typecheck/TcDerivInfer.hs b/compiler/typecheck/TcDerivInfer.hs
index ec779c51d8..49578d93a7 100644
--- a/compiler/typecheck/TcDerivInfer.hs
+++ b/compiler/typecheck/TcDerivInfer.hs
@@ -746,8 +746,8 @@ simplifyDeriv pred tvs thetas
Note [Overlap and deriving]
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Consider some overlapping instances:
- data Show a => Show [a] where ..
- data Show [Char] where ...
+ instance Show a => Show [a] where ..
+ instance Show [Char] where ...
Now a data type with deriving:
data T a = MkT [a] deriving( Show )
diff --git a/compiler/typecheck/TcEnv.hs b/compiler/typecheck/TcEnv.hs
index 6a2f6ce243..81ef54e145 100644
--- a/compiler/typecheck/TcEnv.hs
+++ b/compiler/typecheck/TcEnv.hs
@@ -442,7 +442,7 @@ tcExtendKindEnvList :: [(Name, TcTyThing)] -> TcM r -> TcM r
-- ATcTyCon or APromotionErr
-- No need to update the global tyvars, or tcl_th_bndrs, or tcl_rdr
tcExtendKindEnvList things thing_inside
- = do { traceTc "txExtendKindEnvList" (ppr things)
+ = do { traceTc "tcExtendKindEnvList" (ppr things)
; updLclEnv upd_env thing_inside }
where
upd_env env = env { tcl_env = extendNameEnvList (tcl_env env) things }
@@ -450,7 +450,7 @@ tcExtendKindEnvList things thing_inside
tcExtendKindEnv :: NameEnv TcTyThing -> TcM r -> TcM r
-- A variant of tcExtendKindEvnList
tcExtendKindEnv extra_env thing_inside
- = do { traceTc "txExtendKindEnv" (ppr extra_env)
+ = do { traceTc "tcExtendKindEnv" (ppr extra_env)
; updLclEnv upd_env thing_inside }
where
upd_env env = env { tcl_env = tcl_env env `plusNameEnv` extra_env }