tlex-core-0.4.0.0: A lexer generator
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Lexer.Tlex.Data.Bag

Documentation

data Bag a Source #

Instances

Instances details
Foldable Bag Source # 
Instance details

Defined in Language.Lexer.Tlex.Data.Bag

Methods

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

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

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

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

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

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

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

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

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

toList :: Bag a -> [a] #

null :: Bag a -> Bool #

length :: Bag a -> Int #

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

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

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

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

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

Functor Bag Source # 
Instance details

Defined in Language.Lexer.Tlex.Data.Bag

Methods

fmap :: (a -> b) -> Bag a -> Bag b #

(<$) :: a -> Bag b -> Bag a #

Monoid (Bag a) Source # 
Instance details

Defined in Language.Lexer.Tlex.Data.Bag

Methods

mempty :: Bag a #

mappend :: Bag a -> Bag a -> Bag a #

mconcat :: [Bag a] -> Bag a #

Semigroup (Bag a) Source # 
Instance details

Defined in Language.Lexer.Tlex.Data.Bag

Methods

(<>) :: Bag a -> Bag a -> Bag a #

sconcat :: NonEmpty (Bag a) -> Bag a #

stimes :: Integral b => b -> Bag a -> Bag a #

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

Defined in Language.Lexer.Tlex.Data.Bag

Methods

showsPrec :: Int -> Bag a -> ShowS #

show :: Bag a -> String #

showList :: [Bag a] -> ShowS #

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

Defined in Language.Lexer.Tlex.Data.Bag

Methods

(==) :: Bag a -> Bag a -> Bool #

(/=) :: Bag a -> Bag a -> Bool #

fromList :: [a] -> Bag a Source #

singleton :: a -> Bag a Source #