You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For package dependency calculations I need to get the min/max value of Constraint.
So I suggest adding two new functions which return min/max Version:s and their associated Op:s:
min : Constraint -> (Version, Op)
max : Constraint -> (Version, Op)
Note that this requires exposing Op(..).
(I removed my earlier idea here, this is better and can also have other uses with those exposes Op:s, e.g. with custom conversion to string or something else.)
The text was updated successfully, but these errors were encountered:
malaire
changed the title
Add function which returns min/max of equivalent "min <= v < max".
Add min/max functions to Constraint
Dec 1, 2018
Exposing both Version:s and Op:s allows full customization of how Constraint is displayed e.g. in Html. For example one could add links to Version:s, or different styling for Version:s and Op:s.
For package dependency calculations I need to get the min/max value of
Constraint
.So I suggest adding two new functions which return min/max
Version
:s and their associatedOp
:s:Note that this requires exposing
Op(..)
.(I removed my earlier idea here, this is better and can also have other uses with those exposes
Op
:s, e.g. with custom conversion to string or something else.)The text was updated successfully, but these errors were encountered: