Cabal-syntax-3.9.0.0: A library for working with .cabal files
Safe HaskellSafe-Inferred
LanguageHaskell2010

Distribution.Compat.NonEmptySet

Synopsis

Documentation

data NonEmptySet a Source #

Since: Cabal-syntax-3.4.0.0

Instances

Instances details
Foldable NonEmptySet Source # 
Instance details

Defined in Distribution.Compat.NonEmptySet

Methods

fold :: Monoid m => NonEmptySet m -> m Source #

foldMap :: Monoid m => (a -> m) -> NonEmptySet a -> m Source #

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

foldr :: (a -> b -> b) -> b -> NonEmptySet a -> b Source #

foldr' :: (a -> b -> b) -> b -> NonEmptySet a -> b Source #

foldl :: (b -> a -> b) -> b -> NonEmptySet a -> b Source #

foldl' :: (b -> a -> b) -> b -> NonEmptySet a -> b Source #

foldr1 :: (a -> a -> a) -> NonEmptySet a -> a Source #

foldl1 :: (a -> a -> a) -> NonEmptySet a -> a Source #

toList :: NonEmptySet a -> [a] Source #

null :: NonEmptySet a -> Bool Source #

length :: NonEmptySet a -> Int Source #

elem :: Eq a => a -> NonEmptySet a -> Bool Source #

maximum :: Ord a => NonEmptySet a -> a Source #

minimum :: Ord a => NonEmptySet a -> a Source #

sum :: Num a => NonEmptySet a -> a Source #

product :: Num a => NonEmptySet a -> a Source #

Structured a => Structured (NonEmptySet a) Source # 
Instance details

Defined in Distribution.Compat.NonEmptySet

(Data a, Ord a) => Data (NonEmptySet a) Source # 
Instance details

Defined in Distribution.Compat.NonEmptySet

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> NonEmptySet a -> c (NonEmptySet a) Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (NonEmptySet a) Source #

toConstr :: NonEmptySet a -> Constr Source #

dataTypeOf :: NonEmptySet a -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (NonEmptySet a)) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (NonEmptySet a)) Source #

gmapT :: (forall b. Data b => b -> b) -> NonEmptySet a -> NonEmptySet a Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> NonEmptySet a -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> NonEmptySet a -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> NonEmptySet a -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> NonEmptySet a -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> NonEmptySet a -> m (NonEmptySet a) Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> NonEmptySet a -> m (NonEmptySet a) Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> NonEmptySet a -> m (NonEmptySet a) Source #

Ord a => Semigroup (NonEmptySet a) Source #

Note: there aren't Monoid instance.

Instance details

Defined in Distribution.Compat.NonEmptySet

(Read a, Ord a) => Read (NonEmptySet a) Source # 
Instance details

Defined in Distribution.Compat.NonEmptySet

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

Defined in Distribution.Compat.NonEmptySet

Binary a => Binary (NonEmptySet a) Source # 
Instance details

Defined in Distribution.Compat.NonEmptySet

NFData a => NFData (NonEmptySet a) Source # 
Instance details

Defined in Distribution.Compat.NonEmptySet

Methods

rnf :: NonEmptySet a -> () Source #

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

Defined in Distribution.Compat.NonEmptySet

Ord a => Ord (NonEmptySet a) Source # 
Instance details

Defined in Distribution.Compat.NonEmptySet

Construction

Insertion

Deletion

Conversions

Query

member :: Ord a => a -> NonEmptySet a -> Bool Source #

Map

map :: Ord b => (a -> b) -> NonEmptySet a -> NonEmptySet b Source #