Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Monoidal witness that all items in a bag are unique.
- data Unique a
- = AllUnique (Set a)
- | Duplicated a
- singletonUnique :: a -> Unique a
- allUnique :: (Ord a, Foldable f) => f a -> Bool
Documentation
Monoid under every element being unique.
AllUnique (Set a) | |
Duplicated a |
singletonUnique :: a -> Unique a Source #
Inject a single item into Unique
.