-
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
More information about parameterised type constructors #4
Comments
Hey, good questions!
I don't know if they have a standard name. I used to refer to them as "types parametrized by a functor", but I find it too long. The parameterized-utils package defines analogs of the I'm sure the idea of putting a type-parameter
I gave a talk about the library at one one of the haskell meetups in London some time ago. The video is not up yet, I think, but the slides were for the most part code. Let me know if you need help reconstructing the context. I'm using this mostly at work and I don't currently have other code examples in public repos, but these are some scenarios were I found it useful:
Using
data DbTable pk form = DbTable TableName (Column pk) (Form Column)
data Column a = Column ColumnName (ToDb a) (FromDb a) And because a Hope this makes some sense! |
Thank you for this detailed reply! I think the context of the talk would be quite helpful, I presume I will have to pester Derek? If not, I will try to reconstruct, but what you have written here already makes a lot of sense and seems very sensible. I will try to make use of Barbies in my code and see how I fare and what the caveats may be. |
@isovector explores these concepts pretty deeply in this blog post and calls them "higher-kinded data" :) |
This library looks super interesting. The README states that barbies are a common Haskell idiom.
What is the usual name for this and where can I find out more?
Also, where can I find example uses?
The text was updated successfully, but these errors were encountered: