-
Notifications
You must be signed in to change notification settings - Fork 48
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
Functions => NP #70
Comments
Ah nice, I put together curry/uncurry for |
I've certainly used variants of these before. The reason I haven't added them was that it didn't seem directly connected to generic programming. But I'm open to adding something like this. |
I have to admit I often use |
Yeah this library has loads of useful applications beyond generics - I ended up relying almost exclusively on it for handling heterogenous structures after experimenting with hlist, vinyl and others. I'm wondering if a standalone package, giving definitions and interfaces for heterogenous lists and extensible records, would be worth having? A lot of it would just be type synonyms and specialised renamed functions, but it would provide an accessible entry point. |
I agree with this! Both directly—the library is useful for heterogeneous structures—and also such a subset would partially satisfy another old issue, having a TH-free subset of the library. A version without the generic piece would be TH free and then one could include the instances one needed. |
Ok. In principle, I'm happy to:
I'm not sure how much time I will have doing this, though. The latter is more likely to happen than the former. To address this particular issue, I'll try to add some curry/uncurry functionality. |
I might have time to help out with this - much of the work should be fairly straightforward I think. Would it be worth having three packages, like:
|
I agree about I'm less certain whether having If you want to help, that's great! If you want to have a chat with me before you start, we can arrange something next week. |
See also #61 for the request to have a TH-free library subset. |
Great, I've opened a new issue for the split #75. On the subject of curry/uncurry specifically, |
I've been looking a bit into how I'd like to do Unfortunately, this is suffering from a GHC bug (https://ghc.haskell.org/trac/ghc/ticket/15772), so I'm not sure how much the extra type inference is worth in practice, as it seems to be fragile. So the question is whether to include a simpler and more straight-forward version, or whether to include the "full" version and hope that the GHC bug is fixed at some point (and not overly harmful in the meantime). Another possible problem is that we have to find proper names for all the constraints involved, although I am leaning towards just renaming |
I've created this piece of code with the help of lyxia: https://gist.github.com/reactormonk/c4dd738b4f23281b6ab35b53c8661c91 - maybe it's useful somewhere? Should I open a PR?
The text was updated successfully, but these errors were encountered: