ghc-6.12.3: The GHC API
Source code
Contents
Index
Bag
Documentation
data
Bag
a
Source
Instances
Outputable
a =>
Outputable
(
Bag
a)
emptyBag
::
Bag
a
Source
unitBag
:: a ->
Bag
a
Source
unionBags
::
Bag
a ->
Bag
a ->
Bag
a
Source
unionManyBags
:: [
Bag
a] ->
Bag
a
Source
mapBag
:: (a -> b) ->
Bag
a ->
Bag
b
Source
elemBag
::
Eq
a => a ->
Bag
a ->
Bool
Source
lengthBag
::
Bag
a ->
Int
Source
filterBag
:: (a ->
Bool
) ->
Bag
a ->
Bag
a
Source
partitionBag
:: (a ->
Bool
) ->
Bag
a -> (
Bag
a,
Bag
a)
Source
concatBag
::
Bag
(
Bag
a) ->
Bag
a
Source
foldBag
:: (r -> r -> r) -> (a -> r) -> r ->
Bag
a -> r
Source
foldrBag
:: (a -> r -> r) -> r ->
Bag
a -> r
Source
foldlBag
:: (r -> a -> r) -> r ->
Bag
a -> r
Source
isEmptyBag
::
Bag
a ->
Bool
Source
isSingletonBag
::
Bag
a ->
Bool
Source
consBag
:: a ->
Bag
a ->
Bag
a
Source
snocBag
::
Bag
a -> a ->
Bag
a
Source
anyBag
:: (a ->
Bool
) ->
Bag
a ->
Bool
Source
listToBag
:: [a] ->
Bag
a
Source
bagToList
::
Bag
a -> [a]
Source
mapBagM
::
Monad
m => (a -> m b) ->
Bag
a -> m (
Bag
b)
Source
mapAndUnzipBagM
::
Monad
m => (a -> m (b, c)) ->
Bag
a -> m (
Bag
b,
Bag
c)
Source
Produced by
Haddock
version 2.6.1