Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
9db2b548
Commit
9db2b548
authored
Oct 10, 2003
by
simonpj
Browse files
[project @ 2003-10-10 18:26:24 by simonpj]
Use tcIsTyVarTy
parent
ffa4651e
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/typecheck/TcMType.lhs
View file @
9db2b548
...
...
@@ -51,8 +51,8 @@ import TcType ( TcType, TcThetaType, TcTauType, TcPredType,
tcEqType, tcCmpPred, isClassPred,
tcSplitPhiTy, tcSplitPredTy_maybe, tcSplitAppTy_maybe,
tcSplitTyConApp_maybe, tcSplitForAllTys,
tcIsTyVarTy, tcSplitSigmaTy,
isUnLiftedType, isIPPred,
isTyVarTy,
tcIsTyVarTy, tcSplitSigmaTy,
tcIsTyVarTy,
isUnLiftedType, isIPPred,
mkAppTy, mkTyVarTy, mkTyVarTys,
tyVarsOfPred, getClassPredTys_maybe,
...
...
@@ -816,7 +816,7 @@ check_class_pred_tys dflags ctxt tys
= case ctxt of
InstHeadCtxt -> True -- We check for instance-head
-- formation in checkValidInstHead
InstThetaCtxt -> undecidable_ok || all
i
sTyVarTy tys
InstThetaCtxt -> undecidable_ok || all
tcI
sTyVarTy tys
other -> gla_exts || all tyvar_head tys
where
undecidable_ok = dopt Opt_AllowUndecidableInstances dflags
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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