The partial order induced by min
It's only true if every component on the left is <= the corresponding
component on the right.
:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12
Modulemeasures-0.1.0.3Haskell2010
Combinators for a possibly-multidimensional measurement
The type (Age, Height) is archetypal example of Measure. It's typically
a fixed-length vector of non-negative " measurements ".
The anticipated use-cases involve some notion of a capacity that is limited on a per-dimension basis. Thus the measure of each included candidate quantifies how much of that capacity the candidate would occupy. See eg splitAt.
See the Measure class for more.
module Data.Measure.Class
The partial order induced by min
It's only true if every component on the left is <= the corresponding
component on the right.
The partial order induced by max
It's only true if every component on the left is >= the corresponding
component on the right.
snd . splitAt measure limit, with a bit less allocation
Split a list once a prefix fills up the given capacity
Note that this just splits the given list; it does not attempt anything clever like bin-packing etc.
fst . splitAt measure limit, but non-strict