<div dir="ltr"><div><div>Hi all,<br><br></div>It seems to me that base is missing the very standard function `clamp :: Ord a => a -> a -> a -> a`:<br><br></div><div>```haskell</div><div>clamp :: Ord a => a -> a -> a -> a</div><div>clamp low high = min high .max low<br></div><div>```<br><br></div><div>I propose it be added to Data.Ord. It's useful, generic, and non-trivial to get 
right (the "big" number goes with "min" -- causes me cognitive 
dissonance every time.)</div><div><br></div><div>Thanks,<br></div><div>Sandy</div></div>