charon-0.1: Template
Safe HaskellSafe-Inferred
LanguageGHC2021

Charon.Data.UniqueSeqNE.Internal

Description

Provides the UniqueSeqNE type.

Synopsis

Type

data UniqueSeqNE a Source #

Like UniqueSeq except carries the invariant that it is non-empty.

Constructors

UnsafeUniqueSeqNE 

Fields

Bundled Patterns

pattern MkUniqueSeqNE :: NESeq a -> HashSet a -> UniqueSeqNE a 

Instances

Instances details
Foldable UniqueSeqNE Source # 
Instance details

Defined in Charon.Data.UniqueSeqNE.Internal

Methods

fold :: Monoid m => UniqueSeqNE m -> m #

foldMap :: Monoid m => (a -> m) -> UniqueSeqNE a -> m #

foldMap' :: Monoid m => (a -> m) -> UniqueSeqNE a -> m #

foldr :: (a -> b -> b) -> b -> UniqueSeqNE a -> b #

foldr' :: (a -> b -> b) -> b -> UniqueSeqNE a -> b #

foldl :: (b -> a -> b) -> b -> UniqueSeqNE a -> b #

foldl' :: (b -> a -> b) -> b -> UniqueSeqNE a -> b #

foldr1 :: (a -> a -> a) -> UniqueSeqNE a -> a #

foldl1 :: (a -> a -> a) -> UniqueSeqNE a -> a #

toList :: UniqueSeqNE a -> [a] #

null :: UniqueSeqNE a -> Bool #

length :: UniqueSeqNE a -> Int #

elem :: Eq a => a -> UniqueSeqNE a -> Bool #

maximum :: Ord a => UniqueSeqNE a -> a #

minimum :: Ord a => UniqueSeqNE a -> a #

sum :: Num a => UniqueSeqNE a -> a #

product :: Num a => UniqueSeqNE a -> a #

(k ~ A_Getter, b ~ NESeq a, c ~ NESeq a) => LabelOptic "seq" k (UniqueSeqNE a) (UniqueSeqNE a) b c Source # 
Instance details

Defined in Charon.Data.UniqueSeqNE.Internal

(k ~ A_Getter, b ~ HashSet a, c ~ HashSet a) => LabelOptic "set" k (UniqueSeqNE a) (UniqueSeqNE a) b c Source # 
Instance details

Defined in Charon.Data.UniqueSeqNE.Internal

Hashable a => Semigroup (UniqueSeqNE a) Source # 
Instance details

Defined in Charon.Data.UniqueSeqNE.Internal

Show a => Show (UniqueSeqNE a) Source # 
Instance details

Defined in Charon.Data.UniqueSeqNE.Internal

Eq a => Eq (UniqueSeqNE a) Source # 
Instance details

Defined in Charon.Data.UniqueSeqNE.Internal

Operations

union :: forall a. Hashable a => UniqueSeqNE a -> UniqueSeqNE a -> UniqueSeqNE a Source #

Utils