Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype HoistOptionCall b a = HoistOptionCall (forall x. (a -> x) -> b x -> b x)
- type HoistOption (b :: * -> *) = Optional (HoistOptionCall b)
- data HoistOptionH
- newtype HoistOptionC m a = HoistOptionC {
- unHoistOptionC :: m a
Documentation
newtype HoistOptionCall b a Source #
HoistOptionCall (forall x. (a -> x) -> b x -> b x) |
Instances
Carrier m => PrimHandler HoistOptionH (HoistOption m) m Source # | |
Defined in Control.Effect.Internal.Optional effPrimHandler :: EffPrimHandler (HoistOption m) m Source # | |
Functor (HoistOptionCall b) Source # | |
Defined in Control.Effect.Internal.Optional fmap :: (a -> b0) -> HoistOptionCall b a -> HoistOptionCall b b0 # (<$) :: a -> HoistOptionCall b b0 -> HoistOptionCall b a # |
type HoistOption (b :: * -> *) = Optional (HoistOptionCall b) Source #
A useful specialization of Optional
where the functor is
. From this, you can derive
HoistOptionCall
bhoistOption
.
data HoistOptionH Source #
Instances
Carrier m => PrimHandler HoistOptionH (HoistOption m) m Source # | |
Defined in Control.Effect.Internal.Optional effPrimHandler :: EffPrimHandler (HoistOption m) m Source # |
newtype HoistOptionC m a Source #
HoistOptionC | |
|