Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
f240e9ab
Commit
f240e9ab
authored
Nov 19, 2009
by
rl@cse.unsw.edu.au
Browse files
Fix splitAppTys
parent
191fd267
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/types/Type.lhs
View file @
f240e9ab
...
...
@@ -427,8 +427,8 @@ splitAppTys ty = split ty ty []
split _ (AppTy ty arg) args = split ty ty (arg:args)
split _ (TyConApp tc tc_args) args
= let -- keep type families saturated
n | isDecomposableTyCon tc =
tyConArity tc
| otherwise =
0
n | isDecomposableTyCon tc =
0
| otherwise =
tyConArity tc
(tc_args1, tc_args2) = splitAt n tc_args
in
(TyConApp tc tc_args1, tc_args2 ++ args)
...
...
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