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
Add support for refined types!
The text was updated successfully, but these errors were encountered:
I've been taking a bit of a closer look at this. It looks pretty straightforward.
We want to use any of refined's types on Quantity, as long as they can be used on the underlying type.
Quantity
i.e. if we have evidence for a Validate.Plain[A, F[A]] where F is any type, derive a Validate.Plain[Quantity[A, D], F[Quantity[A, D]].
Validate.Plain[A, F[A]]
F
Validate.Plain[Quantity[A, D], F[Quantity[A, D]]
I think that we can implement the inference rules in the same way.
This should go in a separate libra-refined module.
libra-refined
Sorry, something went wrong.
I wonder if it would be good to implement refined based on spire instead? Quantity has spire typeclass instances, so we'd get refined for free.
No branches or pull requests
Add support for refined types!
The text was updated successfully, but these errors were encountered: