-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: tree shaking of type class instances #5
Conversation
Map from qualified identifiers to `TypeClassInstDepsData` which holds the the type class name and the name of the field in type class dictionary to which this instance member correspond.
`buildTCDeps` scans CoreFn AST tree of a call to member accessor function and returns dependency tree.
#4 needs to be resolved before merging this issue |
* bindIdents - get all identifier of a bind * unApp - get abstraction and arguments of a recursive `App` * isShadowed - check if a qualified ident is shadowed by an identifier * identFromVal - get qualified identifier from a `Var` expression
Then the CoreFn
PureScript compiler places the resolved type class constrain inside the call to
It seems that this is the rule that PureScript fills constraints, rather than creating constraint types for
|
* It needs to return the final argument (`dictShow` or `Data.Show.showInt`) * simplify and review it's logic
8904ed4
to
b1d1265
Compare
a2e68e3
to
bda11a8
Compare
No description provided.