0 | module Data.SortedSet.Lens
2 | import Data.SortedSet
3 | import public Control.Lens
9 | each : Fold (SortedSet k) k
10 | each = folding SortedSet.toList
14 | Ixed k () (SortedSet k) where
15 | ix k = optional' (ignore . guard . contains k) const
18 | At k () (SortedSet k) where
19 | at k = lens (ignore . guard . contains k) (flip $
\case