size-based-0.1.1.0: Sized functors, for size-based enumerations
Control.Enumerable.Count
Synopsis
newtype Count a Source #
Counts the number of values of a all sizes. Usage: @global :: Count [Bool]
Constructors
Fields
Instances
Methods
fmap :: (a -> b) -> Count a -> Count b #
(<$) :: a -> Count b -> Count a #
pure :: a -> Count a #
(<*>) :: Count (a -> b) -> Count a -> Count b #
liftA2 :: (a -> b -> c) -> Count a -> Count b -> Count c #
(*>) :: Count a -> Count b -> Count b #
(<*) :: Count a -> Count b -> Count a #
empty :: Count a #
(<|>) :: Count a -> Count a -> Count a #
some :: Count a -> Count [a] #
many :: Count a -> Count [a] #
pay :: Count a -> Count a Source #
pair :: Count a -> Count b -> Count (a, b) Source #
aconcat :: [Count a] -> Count a Source #
fin :: Integer -> Count Integer Source #
finSized :: Integer -> Count Integer Source #
naturals :: Count Integer Source #
showsPrec :: Int -> Count a -> ShowS #
show :: Count a -> String #
showList :: [Count a] -> ShowS #
(<>) :: Count a -> Count a -> Count a #
sconcat :: NonEmpty (Count a) -> Count a #
stimes :: Integral b => b -> Count a -> Count a #
mempty :: Count a #
mappend :: Count a -> Count a -> Count a #
mconcat :: [Count a] -> Count a #
(!!*) :: Count a -> Int -> Integer Source #
Counts the number of values of a given size, 0 if out of bounds.
(</>) :: Count a -> Count a -> Count a infixl 4 Source #
module Control.Enumerable