Skip to content
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

Improve explanation of Multi Parameter Type Classes and Functional Dependencies #238

Open
milesfrain opened this issue Nov 7, 2020 · 0 comments

Comments

@milesfrain
Copy link
Member

I don't think beginners (without a Haskell background) are going to be able to absorb much from these sections:
https://book.purescript.org/chapter6.html#multi-parameter-type-classes
https://book.purescript.org/chapter6.html#functional-dependencies

It would be more appropriate to cover this material in the language reference (and as a more thorough guide too), and then link to this material from the book. It's currently inverted, where the docs repo links to the book instead:
https://github.com/purescript/documentation/blob/master/language/Type-Classes.md#multi-parameter-type-classes
https://github.com/purescript/documentation/blob/master/language/Type-Classes.md#functional-dependencies

Exercises for this content also need to be added to the book.

This material didn't make much sense for me until watching this video.
https://channel9.msdn.com/Shows/Going+Deep/C9-Lectures-Dr-Ralf-Lmmel-Advanced-Functional-Programming-Type-Classes

Timestamps for Functional Dependencies are:

  • 29:13 - setup scenario
  • 34:20 - describe problem
  • 38:35 - functional dependencies as the solution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant