Types
The type that describes the pair of converter and validator.
Building prisms
make ~conv ~check constructs a prism for type 'a.
Running prisms
conv prism extract the prism conversion function.
check prism extract the prism validation function.
Helpers
A few additional tools for working with prisms.
Sourceval invmap : ('a -> 'b) -> ('b -> 'a) -> 'a t -> 'b t invmap f g prism map both f and g on, respectively, check and conv.
refine f g prism bind f and map g on, respectively, check and conv.