concat-examples-0.3.0.0: Some examples of compiling to categories
Safe HaskellSafe-Inferred
LanguageHaskell2010

ConCat.Pair

Description

Uniform pairs

Documentation

data Pair a Source #

Constructors

a :# a infixl 1 

Instances

Instances details
Representable Pair Source # 
Instance details

Defined in ConCat.Pair

Associated Types

type Rep Pair Source #

Methods

tabulate :: (Rep Pair -> a) -> Pair a Source #

index :: Pair a -> Rep Pair -> a Source #

Foldable Pair Source # 
Instance details

Defined in ConCat.Pair

Methods

fold :: Monoid m => Pair m -> m Source #

foldMap :: Monoid m => (a -> m) -> Pair a -> m Source #

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

foldr :: (a -> b -> b) -> b -> Pair a -> b Source #

foldr' :: (a -> b -> b) -> b -> Pair a -> b Source #

foldl :: (b -> a -> b) -> b -> Pair a -> b Source #

foldl' :: (b -> a -> b) -> b -> Pair a -> b Source #

foldr1 :: (a -> a -> a) -> Pair a -> a Source #

foldl1 :: (a -> a -> a) -> Pair a -> a Source #

toList :: Pair a -> [a] Source #

null :: Pair a -> Bool Source #

length :: Pair a -> Int Source #

elem :: Eq a => a -> Pair a -> Bool Source #

maximum :: Ord a => Pair a -> a Source #

minimum :: Ord a => Pair a -> a Source #

sum :: Num a => Pair a -> a Source #

product :: Num a => Pair a -> a Source #

Traversable Pair Source # 
Instance details

Defined in ConCat.Pair

Methods

traverse :: Applicative f => (a -> f b) -> Pair a -> f (Pair b) Source #

sequenceA :: Applicative f => Pair (f a) -> f (Pair a) Source #

mapM :: Monad m => (a -> m b) -> Pair a -> m (Pair b) Source #

sequence :: Monad m => Pair (m a) -> m (Pair a) Source #

Applicative Pair Source # 
Instance details

Defined in ConCat.Pair

Methods

pure :: a -> Pair a Source #

(<*>) :: Pair (a -> b) -> Pair a -> Pair b Source #

liftA2 :: (a -> b -> c) -> Pair a -> Pair b -> Pair c Source #

(*>) :: Pair a -> Pair b -> Pair b Source #

(<*) :: Pair a -> Pair b -> Pair a Source #

Functor Pair Source # 
Instance details

Defined in ConCat.Pair

Methods

fmap :: (a -> b) -> Pair a -> Pair b Source #

(<$) :: a -> Pair b -> Pair a Source #

Additive1 Pair Source # 
Instance details

Defined in ConCat.Pair

FFT Pair Source # 
Instance details

Defined in ConCat.FFT

Associated Types

type FFO Pair :: Type -> Type Source #

LScan Pair Source # 
Instance details

Defined in ConCat.Pair

Methods

lscan :: Monoid a => Pair a -> Pair a :* a Source #

lscanDummy :: Pair a Source #

Sized Pair Source # 
Instance details

Defined in ConCat.Pair

Methods

size :: Int Source #

Distributive Pair Source # 
Instance details

Defined in ConCat.Pair

Methods

distribute :: Functor f => f (Pair a) -> Pair (f a) Source #

collect :: Functor f => (a -> Pair b) -> f a -> Pair (f b) Source #

distributeM :: Monad m => m (Pair a) -> Pair (m a) Source #

collectM :: Monad m => (a -> Pair b) -> m a -> Pair (m b) Source #

Zip Pair Source # 
Instance details

Defined in ConCat.Pair

Methods

zipWith :: (a -> b -> c) -> Pair a -> Pair b -> Pair c Source #

zip :: Pair a -> Pair b -> Pair (a, b) Source #

zap :: Pair (a -> b) -> Pair a -> Pair b Source #

Pointed Pair Source # 
Instance details

Defined in ConCat.Pair

Methods

point :: a -> Pair a Source #

OkFunctor (:>) Pair Source # 
Instance details

Defined in ConCat.Pair

Methods

okFunctor :: Ok' (:>) a |- Ok' (:>) (Pair a) Source #

HasV s a => HasV s (Pair a) Source # 
Instance details

Defined in ConCat.Pair

Associated Types

type V s (Pair a) :: Type -> Type Source #

Methods

toV :: Pair a -> V s (Pair a) s Source #

unV :: V s (Pair a) s -> Pair a Source #

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

Defined in ConCat.Pair

Methods

showsPrec :: Int -> Pair a -> ShowS Source #

show :: Pair a -> String Source #

showList :: [Pair a] -> ShowS Source #

Additive a => Additive (Pair a) Source # 
Instance details

Defined in ConCat.Pair

Methods

zero :: Pair a Source #

(^+^) :: Pair a -> Pair a -> Pair a Source #

HasRep (Pair a) Source # 
Instance details

Defined in ConCat.Pair

Associated Types

type Rep (Pair a) Source #

Methods

repr :: Pair a -> Rep (Pair a) Source #

abst :: Rep (Pair a) -> Pair a Source #

GenBuses a => GenBuses (Pair a) Source # 
Instance details

Defined in ConCat.Pair

Newtype (Pair a) Source # 
Instance details

Defined in ConCat.Pair

Associated Types

type O (Pair a) Source #

Methods

pack :: O (Pair a) -> Pair a Source #

unpack :: Pair a -> O (Pair a) Source #

type Rep Pair Source # 
Instance details

Defined in ConCat.Pair

type Rep Pair = Bool
type FFO Pair Source # 
Instance details

Defined in ConCat.FFT

type FFO Pair = Pair
type V s (Pair a) Source # 
Instance details

Defined in ConCat.Pair

type V s (Pair a) = V s (Rep (Pair a))
type Rep (Pair a) Source # 
Instance details

Defined in ConCat.Pair

type Rep (Pair a) = a :* a
type O (Pair a) Source # 
Instance details

Defined in ConCat.Pair

type O (Pair a) = a :* a