| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Proarrow.Category.Instance.PointedHask
Synopsis
- data POINTED = P Type
- data Pointed (a :: POINTED) (b :: POINTED) where
- toHask :: ('P a ~> 'P b) -> Maybe a -> Maybe b
- data These a b
- memptyDefault :: Monoid a => (Unit :: POINTED) ~> 'P a
- mappendDefault :: Monoid a => ('P a ** 'P a) ~> 'P a
- underlyingPt :: forall k (a :: k) (b :: k). HasZeroObject k => (a ~> b) -> (Unit :: POINTED) ~> 'P (a ~> b)
- enrichedPt :: forall k (a :: k) (b :: k). (Ob a, Ob b, HasZeroObject k) => ((Unit :: POINTED) ~> 'P (a ~> b)) -> a ~> b
- compPt :: forall k (a :: k) (b :: k) (c :: k). (Ob a, Ob b, Ob c, HasZeroObject k) => ('P (b ~> c) ** 'P (a ~> b)) ~> 'P (a ~> c)
- data FromPointed (f :: Type -> Type) (a :: POINTED) where
- FromPointed :: forall (f :: Type -> Type) a1. {..} -> FromPointed f ('P a1)
- type Filterable (f :: Type -> Type) = Functor (FromPointed f)
- mapMaybe :: Filterable f => (a -> Maybe b) -> f a -> f b
Documentation
data POINTED Source Comments #
Instances
data Pointed (a :: POINTED) (b :: POINTED) where Source Comments #
data These a b Source Comments #
Instances
| Generic (These a b) Source Comments # | |||||
Defined in Proarrow.Category.Instance.PointedHask Associated Types
| |||||
| (Show a, Show b) => Show (These a b) Source Comments # | |||||
| (Eq a, Eq b) => Eq (These a b) Source Comments # | |||||
| type Rep (These a b) Source Comments # | |||||
Defined in Proarrow.Category.Instance.PointedHask type Rep (These a b) = D1 ('MetaData "These" "Proarrow.Category.Instance.PointedHask" "proarrow-0-inplace" 'False) (C1 ('MetaCons "This" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 a)) :+: (C1 ('MetaCons "That" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 b)) :+: C1 ('MetaCons "These" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 a) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 b)))) | |||||
underlyingPt :: forall k (a :: k) (b :: k). HasZeroObject k => (a ~> b) -> (Unit :: POINTED) ~> 'P (a ~> b) Source Comments #
Categories with a zero object can be seen as categories enriched in Pointed.
enrichedPt :: forall k (a :: k) (b :: k). (Ob a, Ob b, HasZeroObject k) => ((Unit :: POINTED) ~> 'P (a ~> b)) -> a ~> b Source Comments #
compPt :: forall k (a :: k) (b :: k) (c :: k). (Ob a, Ob b, Ob c, HasZeroObject k) => ('P (b ~> c) ** 'P (a ~> b)) ~> 'P (a ~> c) Source Comments #
data FromPointed (f :: Type -> Type) (a :: POINTED) where Source Comments #
Constructors
| FromPointed | |
Fields
| |
Instances
| Functor (FromPointed []) Source Comments # | |
Defined in Proarrow.Category.Instance.PointedHask | |
type Filterable (f :: Type -> Type) = Functor (FromPointed f) Source Comments #