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)
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.