| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Control.Comonad.Static
Synopsis
- class StaticFunctor w => StaticExtend w where
- class StaticExtend w => StaticComonad w where
Documentation
class StaticFunctor w => StaticExtend w where Source #
Instances of StaticExtend should satisfy the following laws:
staticExtendf =staticMapf .staticDuplicatestaticDuplicate=staticExtend(staticid)staticExtendf .staticExtendg =staticExtend(static (.)capfcapstaticExtendg)staticDuplicate.staticDuplicate=staticMap(staticstaticDuplicate) .staticDuplicate
Minimal complete definition
Methods
staticDuplicate :: Typeable a => w a -> w (w a) Source #
staticExtend :: (Typeable a, Typeable b) => Closure (w a -> b) -> w a -> w b Source #
class StaticExtend w => StaticComonad w where Source #
Minimal complete definition
Methods
staticExtract :: Typeable a => w a -> a Source #
Instances
| StaticComonad Closure Source # | |
Defined in Control.Comonad.Static Methods staticExtract :: Typeable a => Closure a -> a Source # | |