-
Notifications
You must be signed in to change notification settings - Fork 19
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
optional
is too constrained.
#45
Comments
The reason is that |
…esn't need Plus part of Alternative
I think this makes sense. For a concrete use case, I can see the less constrained version being useful for a parsing library, where you might want to provide an Haskell's |
Ha, I just read your optparse PR and realised that's pretty much exactly your reasoning too! I came across this same issue independently in hdgarrood/aeson-better-errors#12. |
Resolved by #47. Thanks! |
I don't think optional needs the
Plus
part ofAlternative
.I have had to locally fork this for an experiment I'm doing.
The text was updated successfully, but these errors were encountered: