Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
Instances
Foldable Bag Source # | |
Defined in GHC.Data.Bag fold :: Monoid m => Bag m -> m Source # foldMap :: Monoid m => (a -> m) -> Bag a -> m Source # foldMap' :: Monoid m => (a -> m) -> Bag a -> m Source # foldr :: (a -> b -> b) -> b -> Bag a -> b Source # foldr' :: (a -> b -> b) -> b -> Bag a -> b Source # foldl :: (b -> a -> b) -> b -> Bag a -> b Source # foldl' :: (b -> a -> b) -> b -> Bag a -> b Source # foldr1 :: (a -> a -> a) -> Bag a -> a Source # foldl1 :: (a -> a -> a) -> Bag a -> a Source # toList :: Bag a -> [a] Source # null :: Bag a -> Bool Source # length :: Bag a -> Int Source # elem :: Eq a => a -> Bag a -> Bool Source # maximum :: Ord a => Bag a -> a Source # minimum :: Ord a => Bag a -> a Source # | |
Traversable Bag Source # | |
Functor Bag Source # | |
Data a => Data (Bag a) Source # | |
Defined in GHC.Data.Bag gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Bag a -> c (Bag a) Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Bag a) Source # toConstr :: Bag a -> Constr Source # dataTypeOf :: Bag a -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Bag a)) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Bag a)) Source # gmapT :: (forall b. Data b => b -> b) -> Bag a -> Bag a Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Bag a -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Bag a -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Bag a -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Bag a -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Bag a -> m (Bag a) Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Bag a -> m (Bag a) Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Bag a -> m (Bag a) Source # | |
IsList (Bag a) Source # | |
Outputable a => Outputable (Bag a) Source # | |
type Item (Bag a) Source # | |
Defined in GHC.Data.Bag |
unionManyBags :: [Bag a] -> Bag a Source #
isEmptyBag :: Bag a -> Bool Source #
isSingletonBag :: Bag a -> Bool Source #
nonEmptyToBag :: NonEmpty a -> Bag a Source #