refined alternatives and similar packages
Based on the "Data" category
Do you think we are missing an alternative of refined or a related project?
In type theory, a refinement type is a type endowed with a predicate which is assumed to hold for any element of the refined type.
This library allows one to capture the idea of a refinement type
Refined type. A
x wraps a value
x, ensuring that it satisfies a type-level predicate
A simple introduction to this library can be found here: http://nikita-volkov.github.io/refined/