-
Notifications
You must be signed in to change notification settings - Fork 72
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
not selector cannot be applied to a refinement #239
Comments
Thanks for pointing this out! The typical class Not a where
not :: a -> Refinement
instance Not Selector where
...
instance Not Refinement where
... So rather an open sum than a closed sum. |
Feel free to send a PR if you want :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The not selector can be applied to a selector
:not(p)
or to a refinementinput:not(:checked)
, however the type signature for not isnot :: Selector -> Refinement
.What I need is effectively
not :: Either Selector Refinement -> Refinement
, though it would not be nice to writeinput # not (Left checked)
. Ideally, I would like to writenot p
andinput # not checked
.How would you like this implemented?
The text was updated successfully, but these errors were encountered: