Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype OptionalStar f a b = OptionalStar {
- withOptionalStar :: forall r. ((forall x. x -> f x) -> (a -> f b) -> r) -> r
- optionalStar :: (forall x. x -> f x) -> (a -> f b) -> OptionalStar f a b
- runOptionalStar :: OptionalStar f a b -> a -> f b
- mapOptionalStar :: ((a -> f b) -> c -> f d) -> OptionalStar f a b -> OptionalStar f c d
Optional star profunctors
newtype OptionalStar f a b Source #
OptionalStar | |
|
Instances
Construction
optionalStar :: (forall x. x -> f x) -> (a -> f b) -> OptionalStar f a b Source #
Elimination
runOptionalStar :: OptionalStar f a b -> a -> f b Source #
Computation
mapOptionalStar :: ((a -> f b) -> c -> f d) -> OptionalStar f a b -> OptionalStar f c d Source #