Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Provides the UniqueSeqNE
type.
Synopsis
- data UniqueSeqNE a where
- UnsafeUniqueSeqNE { }
- pattern MkUniqueSeqNE :: NESeq a -> HashSet a -> UniqueSeqNE a
- union :: forall a. Hashable a => UniqueSeqNE a -> UniqueSeqNE a -> UniqueSeqNE a
- notHSetMember :: Hashable a => a -> HashSet a -> Bool
Type
data UniqueSeqNE a Source #
Like UniqueSeq
except carries the invariant that it is non-empty.
pattern MkUniqueSeqNE :: NESeq a -> HashSet a -> UniqueSeqNE a |
Instances
Operations
union :: forall a. Hashable a => UniqueSeqNE a -> UniqueSeqNE a -> UniqueSeqNE a Source #