-
Notifications
You must be signed in to change notification settings - Fork 7
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
Question: New Semantics for Reader / Default #18
Comments
The underlying problem is that default values overrode parse errors before 28bf50b. Hopefully, I'll get around to releasing the fix to Hackage in a couple of days, thanks for reminding me! |
Thank you for the library! |
@supki It looks like this release hasn't happened yet. Gentle ping about that. |
Another nudge from me to cut a release - I'd love to see this! |
Another ping to the maintainer, the same is asked in #20 |
I was wondering if it was possible to have a
Reader e a
with the following behavior:Nothing
UnreadError s
Just <CustomType>
For help with this problem, I have a full Haskell script which does not have the desire behavior. The focal point of the script should be declaration of
readCustom
, which is my customReader
.The current behavior of the script is that it correctly implements behavior
2
and3
in the list above, but not behavior1
. If I adddef Nothing
to the third argument ofvar
, then behavior1
and3
are correctly implemented, but not behavior2
. (In the case of behavior2
, the value isNothing
).The text was updated successfully, but these errors were encountered: