-
Notifications
You must be signed in to change notification settings - Fork 20
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
Think about sum types #20
Comments
It's a really tricky one for a number of reasons. The short answer is "yes, and I have a good idea how I'd go about it". The long answer? Well, it's maybe easier to consider this question in terms of each function in this library:
|
That's a much more thorough answer than I was expecting! Thank you. |
Some initial cursory thoughts. |
Regarding use cases, let's just say: We've thought about using higgledy numerous times but couldn't because we needed support for sum types! One example is Obelisk Routes in which just about everything is HKD. We would love to share sums between routes and other parts of the app. Higgledy-style APIs would make that easier, but alas we can't use it. |
Do you have an example of current usage that you can link me? I've never seen Obelisk and the Route module is... a little overwhelming 😄 |
@xplat pointed out that another use case would be using Reflex's |
I haven't thought about them in the context of higgledy but I want to get the ball rolling. Have you already considered what this would look like?
The text was updated successfully, but these errors were encountered: