We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I attempted to use ArgMin but got the following error:
No instance for (Bounded (Arg Number LocalTime))
And sure enough there is no Bounded instance for Arg which Min requires.
Nothing that another orphan instance won't work around.
The text was updated successfully, but these errors were encountered:
It works just fine.
If you want a Monoid you'll need a Bounded instance, but if you just want a Semigroup you don't.
Monoid
Bounded
Semigroup
I cannot give you a Bounded instance for Arg. Its ordering isn't structural. Period. That path cannot work. You hit a dead end.
Arg
You are looking for Option (ArgMax a b). This adds in a unit.
Option (ArgMax a b)
No orphan is required, just careful knowledge of what instance you are actually looking for.
Sorry, something went wrong.
No branches or pull requests
I attempted to use ArgMin but got the following error:
And sure enough there is no Bounded instance for Arg which Min requires.
Nothing that another orphan instance won't work around.
The text was updated successfully, but these errors were encountered: