pandora-0.4.3: A box of patterns and paradigms
Safe HaskellSafe-Inferred
LanguageHaskell2010

Pandora.Paradigm.Structure.Modification.Comprehension

Documentation

newtype Comprehension t a Source #

Constructors

Comprehension ((t <:.> Construction t) := a) 

Instances

Instances details
Covariant (t <:.> Construction t) => Covariant (Comprehension t) Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Modification.Comprehension

Methods

(<$>) :: (a -> b) -> Comprehension t a -> Comprehension t b Source #

comap :: (a -> b) -> Comprehension t a -> Comprehension t b Source #

(<$) :: a -> Comprehension t b -> Comprehension t a Source #

($>) :: Comprehension t a -> b -> Comprehension t b Source #

void :: Comprehension t a -> Comprehension t () Source #

loeb :: Comprehension t (a <:= Comprehension t) -> Comprehension t a Source #

(<&>) :: Comprehension t a -> (a -> b) -> Comprehension t b Source #

(<$$>) :: Covariant u => (a -> b) -> ((Comprehension t :. u) := a) -> (Comprehension t :. u) := b Source #

(<$$$>) :: (Covariant u, Covariant v) => (a -> b) -> ((Comprehension t :. (u :. v)) := a) -> (Comprehension t :. (u :. v)) := b Source #

(<$$$$>) :: (Covariant u, Covariant v, Covariant w) => (a -> b) -> ((Comprehension t :. (u :. (v :. w))) := a) -> (Comprehension t :. (u :. (v :. w))) := b Source #

(<&&>) :: Covariant u => ((Comprehension t :. u) := a) -> (a -> b) -> (Comprehension t :. u) := b Source #

(<&&&>) :: (Covariant u, Covariant v) => ((Comprehension t :. (u :. v)) := a) -> (a -> b) -> (Comprehension t :. (u :. v)) := b Source #

(<&&&&>) :: (Covariant u, Covariant v, Covariant w) => ((Comprehension t :. (u :. (v :. w))) := a) -> (a -> b) -> (Comprehension t :. (u :. (v :. w))) := b Source #

(.#..) :: (Comprehension t ~ v a, Category v) => v c d -> ((v a :. v b) := c) -> (v a :. v b) := d Source #

(.#...) :: (Comprehension t ~ v a, Comprehension t ~ v b, Category v, Covariant (v a), Covariant (v b)) => v d e -> ((v a :. (v b :. v c)) := d) -> (v a :. (v b :. v c)) := e Source #

(.#....) :: (Comprehension t ~ v a, Comprehension t ~ v b, Comprehension t ~ v c, Category v, Covariant (v a), Covariant (v b), Covariant (v c)) => v e f -> ((v a :. (v b :. (v c :. v d))) := e) -> (v a :. (v b :. (v c :. v d))) := f Source #

(<$$) :: Covariant u => b -> ((Comprehension t :. u) := a) -> (Comprehension t :. u) := b Source #

(<$$$) :: (Covariant u, Covariant v) => b -> ((Comprehension t :. (u :. v)) := a) -> (Comprehension t :. (u :. v)) := b Source #

(<$$$$) :: (Covariant u, Covariant v, Covariant w) => b -> ((Comprehension t :. (u :. (v :. w))) := a) -> (Comprehension t :. (u :. (v :. w))) := b Source #

($$>) :: Covariant u => ((Comprehension t :. u) := a) -> b -> (Comprehension t :. u) := b Source #

($$$>) :: (Covariant u, Covariant v) => ((Comprehension t :. (u :. v)) := a) -> b -> (Comprehension t :. (u :. v)) := b Source #

($$$$>) :: (Covariant u, Covariant v, Covariant w) => ((Comprehension t :. (u :. (v :. w))) := a) -> b -> (Comprehension t :. (u :. (v :. w))) := b Source #

(forall a. Semigroup ((t <:.> Construction t) := a), Bindable t) => Bindable (Comprehension t) Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Modification.Comprehension

Methods

(>>=) :: Comprehension t a -> (a -> Comprehension t b) -> Comprehension t b Source #

(=<<) :: (a -> Comprehension t b) -> Comprehension t a -> Comprehension t b Source #

bind :: (a -> Comprehension t b) -> Comprehension t a -> Comprehension t b Source #

join :: ((Comprehension t :. Comprehension t) := a) -> Comprehension t a Source #

(>=>) :: (a -> Comprehension t b) -> (b -> Comprehension t c) -> a -> Comprehension t c Source #

(<=<) :: (b -> Comprehension t c) -> (a -> Comprehension t b) -> a -> Comprehension t c Source #

($>>=) :: Covariant u => ((u :. Comprehension t) := a) -> (a -> Comprehension t b) -> (u :. Comprehension t) := b Source #

(forall a. Semigroup ((t <:.> Construction t) := a), Bindable t, Pointable t ((->) :: Type -> Type -> Type), Avoidable t) => Applicative (Comprehension t) Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Modification.Comprehension

Methods

(<*>) :: Comprehension t (a -> b) -> Comprehension t a -> Comprehension t b Source #

apply :: Comprehension t (a -> b) -> Comprehension t a -> Comprehension t b Source #

(*>) :: Comprehension t a -> Comprehension t b -> Comprehension t b Source #

(<*) :: Comprehension t a -> Comprehension t b -> Comprehension t a Source #

forever :: Comprehension t a -> Comprehension t b Source #

(<%>) :: Comprehension t a -> Comprehension t (a -> b) -> Comprehension t b Source #

(<**>) :: Applicative u => ((Comprehension t :. u) := (a -> b)) -> ((Comprehension t :. u) := a) -> (Comprehension t :. u) := b Source #

(<***>) :: (Applicative u, Applicative v) => ((Comprehension t :. (u :. v)) := (a -> b)) -> ((Comprehension t :. (u :. v)) := a) -> (Comprehension t :. (u :. v)) := b Source #

(<****>) :: (Applicative u, Applicative v, Applicative w) => ((Comprehension t :. (u :. (v :. w))) := (a -> b)) -> ((Comprehension t :. (u :. (v :. w))) := a) -> (Comprehension t :. (u :. (v :. w))) := b Source #

Applicative (Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:))) Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Some.List

Methods

(<*>) :: Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) (a -> b) -> Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) a -> Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) b Source #

apply :: Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) (a -> b) -> Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) a -> Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) b Source #

(*>) :: Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) a -> Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) b -> Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) b Source #

(<*) :: Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) a -> Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) b -> Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) a Source #

forever :: Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) a -> Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) b Source #

(<%>) :: Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) a -> Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) (a -> b) -> Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) b Source #

(<**>) :: Applicative u => ((Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) :. u) := (a -> b)) -> ((Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) :. u) := a) -> (Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) :. u) := b Source #

(<***>) :: (Applicative u, Applicative v) => ((Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) :. (u :. v)) := (a -> b)) -> ((Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) :. (u :. v)) := a) -> (Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) :. (u :. v)) := b Source #

(<****>) :: (Applicative u, Applicative v, Applicative w) => ((Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) :. (u :. (v :. w))) := (a -> b)) -> ((Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) :. (u :. (v :. w))) := a) -> (Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:)) :. (u :. (v :. w))) := b Source #

Alternative t => Alternative (Comprehension t) Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Modification.Comprehension

(Avoidable t, Alternative t) => Avoidable (Comprehension t) Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Modification.Comprehension

Methods

empty :: Comprehension t a Source #

(forall a. Semigroup ((t <:.> Construction t) := a), Pointable t ((->) :: Type -> Type -> Type), Avoidable t, Bindable t) => Monad (Comprehension t) Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Modification.Comprehension

Traversable (t <:.> Construction t) => Traversable (Comprehension t) Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Modification.Comprehension

Methods

(->>) :: (Pointable u (->), Applicative u) => Comprehension t a -> (a -> u b) -> (u :. Comprehension t) := b Source #

traverse :: (Pointable u (->), Applicative u) => (a -> u b) -> Comprehension t a -> (u :. Comprehension t) := b Source #

sequence :: (Pointable u (->), Applicative u) => ((Comprehension t :. u) := a) -> (u :. Comprehension t) := a Source #

(->>>) :: (Pointable u (->), Applicative u, Traversable v) => ((v :. Comprehension t) := a) -> (a -> u b) -> (u :. (v :. Comprehension t)) := b Source #

(->>>>) :: (Pointable u (->), Applicative u, Traversable v, Traversable w) => ((w :. (v :. Comprehension t)) := a) -> (a -> u b) -> (u :. (w :. (v :. Comprehension t))) := b Source #

(->>>>>) :: (Pointable u (->), Applicative u, Traversable v, Traversable w, Traversable j) => ((j :. (w :. (v :. Comprehension t))) := a) -> (a -> u b) -> (u :. (j :. (w :. (v :. Comprehension t)))) := b Source #

Interpreted (Comprehension t) Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Modification.Comprehension

Associated Types

type Primary (Comprehension t) a Source #

Methods

run :: Comprehension t a -> Primary (Comprehension t) a Source #

unite :: Primary (Comprehension t) a -> Comprehension t a Source #

(||=) :: Interpreted u => (Primary (Comprehension t) a -> Primary u b) -> Comprehension t a -> u b Source #

(=||) :: Interpreted u => (Comprehension t a -> u b) -> Primary (Comprehension t) a -> Primary u b Source #

(<$||=) :: (Covariant j, Interpreted u) => (Primary (Comprehension t) a -> Primary u b) -> (j := Comprehension t a) -> j := u b Source #

(<$$||=) :: (Covariant j, Covariant k, Interpreted u) => (Primary (Comprehension t) a -> Primary u b) -> ((j :. k) := Comprehension t a) -> (j :. k) := u b Source #

(<$$$||=) :: (Covariant j, Covariant k, Covariant l, Interpreted u) => (Primary (Comprehension t) a -> Primary u b) -> ((j :. (k :. l)) := Comprehension t a) -> (j :. (k :. l)) := u b Source #

(<$$$$||=) :: (Covariant j, Covariant k, Covariant l, Covariant m, Interpreted u) => (Primary (Comprehension t) a -> Primary u b) -> ((j :. (k :. (l :. m))) := Comprehension t a) -> (j :. (k :. (l :. m))) := u b Source #

(=||$>) :: (Covariant j, Interpreted u) => (Comprehension t a -> u b) -> (j := Primary (Comprehension t) a) -> j := Primary u b Source #

(=||$$>) :: (Covariant j, Covariant k, Interpreted u) => (Comprehension t a -> u b) -> ((j :. k) := Primary (Comprehension t) a) -> (j :. k) := Primary u b Source #

(=||$$$>) :: (Covariant j, Covariant k, Covariant l, Interpreted u) => (Comprehension t a -> u b) -> ((j :. (k :. l)) := Primary (Comprehension t) a) -> (j :. (k :. l)) := Primary u b Source #

(=||$$$$>) :: (Covariant j, Covariant k, Covariant l, Covariant m, Interpreted u) => (Comprehension t a -> u b) -> ((j :. (k :. (l :. m))) := Primary (Comprehension t) a) -> (j :. (k :. (l :. m))) := Primary u b Source #

Nullable (t <:.> Construction t) => Nullable (Comprehension t :: Type -> Type) Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Modification.Comprehension

Methods

null :: forall (a :: k). (Predicate :. Comprehension t) := a Source #

(Avoidable t, Pointable t ((->) :: Type -> Type -> Type)) => Pointable (Comprehension t) ((->) :: Type -> Type -> Type) Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Modification.Comprehension

Methods

point :: a -> Comprehension t a Source #

Morphable ('Into (Comprehension Maybe)) (Tap ((List <:.:> List) := (:*:))) Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Some.List

Associated Types

type Morphing ('Into (Comprehension Maybe)) (Tap ((List <:.:> List) := (:*:))) :: Type -> Type Source #

Covariant_ (t <:.> Construction t) ((->) :: Type -> Type -> Type) ((->) :: Type -> Type -> Type) => Covariant_ (Comprehension t) ((->) :: Type -> Type -> Type) ((->) :: Type -> Type -> Type) Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Modification.Comprehension

Methods

(-<$>-) :: (a -> b) -> Comprehension t a -> Comprehension t b Source #

Semigroup ((t <:.> Construction t) := a) => Semigroup (Comprehension t a) Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Modification.Comprehension

Methods

(+) :: Comprehension t a -> Comprehension t a -> Comprehension t a Source #

Monoid ((t <:.> Construction t) := a) => Monoid (Comprehension t a) Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Modification.Comprehension

Methods

zero :: Comprehension t a Source #

Setoid ((t <:.> Construction t) := a) => Setoid (Comprehension t a) Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Modification.Comprehension

(Covariant t, Covariant_ t ((->) :: Type -> Type -> Type) ((->) :: Type -> Type -> Type), Pointable t ((->) :: Type -> Type -> Type)) => Morphable ('Push :: a -> Morph a) (Comprehension t) Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Modification.Comprehension

Associated Types

type Morphing 'Push (Comprehension t) :: Type -> Type Source #

type Primary (Comprehension t) a Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Modification.Comprehension

type Morphing ('Into (Comprehension Maybe)) (Tap ((List <:.:> List) := (:*:))) Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Some.List

type Morphing ('Push :: a -> Morph a) (Comprehension t) Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Modification.Comprehension

type Morphing ('Push :: a -> Morph a) (Comprehension t) = (Identity <:.:> Comprehension t) := ((->) :: Type -> Type -> Type)
type Zipper (Comprehension Maybe) (('Left :: a1 -> Wye a1) ::: ('Right :: a2 -> Wye a2) :: k -> k' -> Type) Source # 
Instance details

Defined in Pandora.Paradigm.Structure.Some.List

type Zipper (Comprehension Maybe) (('Left :: a1 -> Wye a1) ::: ('Right :: a2 -> Wye a2) :: k -> k' -> Type) = Tap ((Comprehension Maybe <:.:> Comprehension Maybe) := (:*:))

Orphan instances

(Covariant t, Covariant_ t ((->) :: Type -> Type -> Type) ((->) :: Type -> Type -> Type), Pointable t ((->) :: Type -> Type -> Type)) => Morphable ('Push :: a -> Morph a) (Comprehension t) Source # 
Instance details

Associated Types

type Morphing 'Push (Comprehension t) :: Type -> Type Source #