size-based-0.1.3.3: Sized functors, for size-based enumerations
Safe HaskellSafe-Inferred
LanguageHaskell2010

Control.Enumerable.Values

Synopsis

Documentation

values :: Enumerable a => Int -> [a] Source #

Constructs all values of a given size.

values' :: Enumerable a => Int -> [[a]] Source #

Constructs all values up to a given size.

newtype Values a Source #

Constructors

Values 

Fields

Instances

Instances details
Alternative Values Source # 
Instance details

Defined in Control.Enumerable.Values

Methods

empty :: Values a #

(<|>) :: Values a -> Values a -> Values a #

some :: Values a -> Values [a] #

many :: Values a -> Values [a] #

Applicative Values Source # 
Instance details

Defined in Control.Enumerable.Values

Methods

pure :: a -> Values a #

(<*>) :: Values (a -> b) -> Values a -> Values b #

liftA2 :: (a -> b -> c) -> Values a -> Values b -> Values c #

(*>) :: Values a -> Values b -> Values b #

(<*) :: Values a -> Values b -> Values a #

Functor Values Source # 
Instance details

Defined in Control.Enumerable.Values

Methods

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

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

Sized Values Source # 
Instance details

Defined in Control.Enumerable.Values