Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
af3dc1ff
Commit
af3dc1ff
authored
Dec 23, 2004
by
simonpj
Browse files
[project @ 2004-12-23 13:44:06 by simonpj]
minor nomenclature wibble
parent
c97ea0ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/typecheck/TcEnv.lhs
View file @
af3dc1ff
...
...
@@ -17,7 +17,7 @@ module TcEnv(
-- Local environment
tcExtendKindEnv,
tcExtendTyVarEnv, tcExtendTyVarEnv
3
,
tcExtendTyVarEnv, tcExtendTyVarEnv
2
,
tcExtendIdEnv, tcExtendIdEnv1, tcExtendIdEnv2,
tcLookup, tcLookupLocated, tcLookupLocalIds,
tcLookupId, tcLookupTyVar,
...
...
@@ -250,8 +250,8 @@ tcExtendTyVarEnv :: [TyVar] -> TcM r -> TcM r
tcExtendTyVarEnv tvs thing_inside
= tc_extend_tv_env [ATyVar tv (mkTyVarTy tv) | tv <- tvs] thing_inside
tcExtendTyVarEnv
3
:: [(TyVar,TcType)] -> TcM r -> TcM r
tcExtendTyVarEnv
3
ty_pairs thing_inside
tcExtendTyVarEnv
2
:: [(TyVar,TcType)] -> TcM r -> TcM r
tcExtendTyVarEnv
2
ty_pairs thing_inside
= tc_extend_tv_env [ATyVar tv1 ty2 | (tv1,ty2) <- ty_pairs] thing_inside
tc_extend_tv_env binds thing_inside
...
...
ghc/compiler/typecheck/TcPat.lhs
View file @
af3dc1ff
...
...
@@ -20,7 +20,7 @@ import Inst ( InstOrigin(..),
import Id ( Id, idType, mkLocalId )
import Name ( Name )
import TcSimplify ( tcSimplifyCheck, bindInstsOfLocalFuns )
import TcEnv ( newLocalName, tcExtendIdEnv1, tcExtendTyVarEnv
3
,
import TcEnv ( newLocalName, tcExtendIdEnv1, tcExtendTyVarEnv
2
,
tcLookupClass, tcLookupDataCon, tcLookupId )
import TcMType ( newTyFlexiVarTy, arityErr, tcSkolTyVars, readMetaTyVar )
import TcType ( TcType, TcTyVar, TcSigmaType, TcTauType, zipTopTvSubst,
...
...
@@ -248,7 +248,7 @@ tc_pat ctxt (SigPatIn pat sig) pat_ty thing_inside
; let tv_binds = [(tv, substTyVar subst tv) | tv <- sig_tvs]
sig_ty' = substTy subst sig_ty
; (pat', tvs, res)
<- tcExtendTyVarEnv
3
tv_binds $
<- tcExtendTyVarEnv
2
tv_binds $
tc_lpat ctxt pat (Check sig_ty') thing_inside
; return (SigPatOut pat' sig_ty, tvs, res) }
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment