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
12f3a53e
Commit
12f3a53e
authored
Jan 13, 2013
by
Iavor S. Diatchki
Browse files
Fixup comment: typos + I had the generalization rule backwards.
parent
fe61599f
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/types/FunDeps.lhs
View file @
12f3a53e
...
...
@@ -154,9 +154,10 @@ oclose preds fixed_tvs
-- For 1: the above argument about `t` being monomorphic seems incorrect.
-- The correct behavior is to quantify over `t`, even though we know that
-- it may be instantiated to at most one type. The point is that we might
-- only find out what that type is later, at the class site to the function.
-- In genral, we should be quantifying all variables that are not mentioned
-- in the environment + the variables that are determined by them.
-- only find out what that type is later, at the call site to the function.
-- In general, we should be quantifying all variables that are (i) not in
-- mentioned in the environment, and (ii) not FD-determined by something in
-- the environment.
-- For 2: This is just a nicity, but it makes things a bit more general:
-- if we have an assumption `t1 ~ t2`, then we use the fact that if we know
-- `t1` we also know `t2` and the other way.
...
...
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