Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data Optic (w :: PRO m m') (a :: c) (b :: d) (s :: c) (t :: d) where Source Comments #
Optic :: forall {c} {d} {m} {m'} (x :: m) (x' :: m') (a :: c) (b :: d) (s :: c) (t :: d) (w :: PRO m m'). (Ob a, Ob b) => (s ~> Act x a) -> w x x' -> (Act x' b ~> t) -> Optic w a b s t |
type IsOptic (w :: PRO m m') c d = (MonoidalProfunctor w, MonoidalAction m c, MonoidalAction m' d) Source Comments #
parallel :: forall {k1} {j1} {k2} {k3} {k4} {j2} {k5} {k6} (w :: PRO k1 j1) (a :: k2) (b :: k3) (s :: k2) (t :: k3) (w' :: PRO k4 j2) (c :: k5) (d :: k6) (u :: k5) (v :: k6). Optic w a b s t -> Optic w' c d u v -> Optic (w :**: w') '(a, c) '(b, d) '(s, u) '(t, v) Source Comments #
data OPTIC (w :: PRO m m') c d Source Comments #
OPT c d |
Instances
IsOptic w c d => CategoryOf (OPTIC w c d) Source Comments # | |
Defined in Proarrow.Category.Monoidal.Optic | |
IsOptic w c d => Promonad (OpticCat :: OPTIC w c d -> OPTIC w c d -> Type) Source Comments # | |
IsOptic w c d => Profunctor (OpticCat :: OPTIC w c d -> OPTIC w c d -> Type) Source Comments # | |
Defined in Proarrow.Category.Monoidal.Optic | |
type (~>) Source Comments # | |
type Ob (a :: OPTIC w c d) Source Comments # | |
data OpticCat (ab :: OPTIC w c d) (st :: OPTIC w c d) where Source Comments #
OpticCat :: forall {m} {m'} (w :: PRO m m') c (a :: c) d (b :: d) (s :: c) (t :: d). Optic w a b s t -> OpticCat ('OPT a b :: OPTIC w c d) ('OPT s t :: OPTIC w c d) |
type ProfOptic (w :: m +-> m') (a :: k) (b :: k1) (s :: k) (t :: k1) = forall (p :: k1 +-> k). Strong w p => p a b -> p s t Source Comments #
type MixedOptic m (a :: k) (b :: k1) (s :: k) (t :: k1) = ProfOptic ((~>) :: CAT m) a b s t Source Comments #
ex2prof :: forall {m'} {m} {k1} {k2} (w :: PRO m' m) (a :: k1) (b :: k2) (s :: k1) (t :: k2). Optic w a b s t -> ProfOptic w a b s t Source Comments #
prof2ex :: forall {c} {d} m m' (w :: m' +-> m) (a :: c) (b :: d) (s :: c) (t :: d). (MonoidalProfunctor w, MonoidalAction m c, MonoidalAction m' d, Ob a, Ob b) => ProfOptic w a b s t -> Optic w a b s t Source Comments #
type Prism (s :: k) (t :: k1) (a :: k) (b :: k1) = MixedOptic (COPROD Type) ('COPR a) ('COPR b) ('COPR s) ('COPR t) Source Comments #
type Traversal (s :: k) (t :: k1) (a :: k) (b :: k1) = MixedOptic (Type -> Type) a b s t Source Comments #
traversing :: forall (f :: Type -> Type) a b. Traversable f => Traversal (f a) (f b) a b Source Comments #
class Monad m => Algebra (m :: Type -> Type) a where Source Comments #
Instances
type AlgebraicLens (m :: Type -> Type) (s :: k) (t :: k1) (a :: k) (b :: k1) = MixedOptic (SUBCAT (Algebra m)) a b s t Source Comments #
mkAlgebraicLens :: forall m s t a b. Monad m => (s -> a) -> (m s -> b -> t) -> AlgebraicLens m s t a b Source Comments #
data Previewing (a :: COPROD Type) (b :: COPROD Type) (s :: COPROD Type) (t :: COPROD Type) where Source Comments #
Instances
Strong (->) (Previewing a b :: COPROD Type -> COPROD Type -> Type) Source Comments # | |
Defined in Proarrow.Category.Monoidal.Optic | |
Strong (Coprod (->)) (Previewing a b :: COPROD Type -> COPROD Type -> Type) Source Comments # | |
Profunctor (Previewing a b :: COPROD Type -> COPROD Type -> Type) Source Comments # | |
Defined in Proarrow.Category.Monoidal.Optic dimap :: forall (c :: COPROD Type) (a0 :: COPROD Type) (b0 :: COPROD Type) (d :: COPROD Type). (c ~> a0) -> (b0 ~> d) -> Previewing a b a0 b0 -> Previewing a b c d Source Comments # (\\) :: forall (a0 :: COPROD Type) (b0 :: COPROD Type) r. ((Ob a0, Ob b0) => r) -> Previewing a b a0 b0 -> r Source Comments # |
(?.) :: s -> (Previewing ('COPR a) ('COPR b) ('COPR a) ('COPR b) -> Previewing ('COPR a) ('COPR b) ('COPR s) ('COPR t)) -> Maybe a infixl 8 Source Comments #
data Updating (a :: k) (b :: KlCat m) s (t :: KlCat m) where Source Comments #
mupdate :: Monad m => (Updating a ('KL b :: KLEISLI (Star (Prelude m))) a ('KL b :: KLEISLI (Star (Prelude m))) -> Updating a ('KL b :: KLEISLI (Star (Prelude m))) s ('KL t :: KLEISLI (Star (Prelude m)))) -> b -> s -> m t Source Comments #
newtype Replacing a b s t Source Comments #
Instances
Strong (->) (Replacing a b :: Type -> Type -> Type) Source Comments # | |
Profunctor (Replacing a b :: Type -> Type -> Type) Source Comments # | |
Strong (Coprod (->)) (Replacing a b :: Type -> Type -> Type) Source Comments # | |
Strong (Nat :: (Type -> Type) -> (Type -> Type) -> Type) (Replacing a b :: Type -> Type -> Type) Source Comments # | |
newtype Classifying (m :: Type -> Type) (a :: k) b s t Source Comments #
Classifying | |
|
Instances
Monad m => Profunctor (Classifying m a b :: Type -> Type -> Type) Source Comments # | |
Defined in Proarrow.Category.Monoidal.Optic dimap :: (c ~> a0) -> (b0 ~> d) -> Classifying m a b a0 b0 -> Classifying m a b c d Source Comments # (\\) :: ((Ob a0, Ob b0) => r) -> Classifying m a b a0 b0 -> r Source Comments # | |
Monad m => Strong (Sub (->) :: SUBCAT (Algebra m) -> SUBCAT (Algebra m) -> Type) (Classifying m a b :: Type -> Type -> Type) Source Comments # | |
Defined in Proarrow.Category.Monoidal.Optic |
(.?) :: Monad m => (Classifying m a b a b -> Classifying m a b s t) -> b -> m s -> t infixl 8 Source Comments #