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
c269f662
Commit
c269f662
authored
Jan 31, 2005
by
simonpj
Browse files
[project @ 2005-01-31 13:53:29 by simonpj]
Wibble to hoistForAllTys
parent
f25b9225
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/typecheck/TcType.lhs
View file @
c269f662
...
...
@@ -683,7 +683,7 @@ hoistForAllTys ty
-- if t2 is a for-all type, push t1 inside it
-- if t2 is (pred -> t3), check for duplicates
mk_fun_ty ty1 ty2
| not (is
Overloaded
Ty ty2) -- No forall's, or context =>
| not (is
Sigma
Ty ty2)
-- No forall's, or context =>
= FunTy ty1 ty2
| PredTy p1 <- ty1 -- ty1 is a predicate
= if p1 `elem` theta then -- so check for duplicates
...
...
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