Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data FreePointedFunctor f product
- run :: Monad effect => (forall x. f x -> effect x) -> FreePointedFunctor f product -> effect product
- eval :: (forall x. f x -> x) -> FreePointedFunctor f product -> product
- alter :: (forall x. f x -> FreePointedFunctor f' x) -> FreePointedFunctor f product -> FreePointedFunctor f' product
Type
data FreePointedFunctor f product Source #
Instances
Functor (FreePointedFunctor f) Source # | |
Defined in SupplyChain.Core.FreePointedFunctor fmap :: (a -> b) -> FreePointedFunctor f a -> FreePointedFunctor f b # (<$) :: a -> FreePointedFunctor f b -> FreePointedFunctor f a # |
Running
:: Monad effect | |
=> (forall x. f x -> effect x) | How to interpret |
-> FreePointedFunctor f product | |
-> effect product |
:: (forall x. f x -> x) | How to interpret |
-> FreePointedFunctor f product | |
-> product |
Alteration
alter :: (forall x. f x -> FreePointedFunctor f' x) -> FreePointedFunctor f product -> FreePointedFunctor f' product Source #