Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class StaticFunctor f => StaticApply f where
- class StaticApply f => StaticApplicative f where
Documentation
class StaticFunctor f => StaticApply f where Source #
Instances of StaticApply
should satisfy the following laws (writing
staticMap
, staticApply
as infix (
, <$>
)(
, respectively):<*>
)
static (.)<$>
u<*>
v<*>
w = u<*>
(v<*>
w) x<*>
(f<$>
y) = (static (flip (.)) `cap
` f)<$>
x<*>
y f<$>
(x<*>
y) = (static (.) `cap
` f)<$>
x<*>
y
staticApply :: (Typeable a, Typeable b) => f (a -> b) -> f a -> f b Source #
class StaticApply f => StaticApplicative f where Source #
staticPure :: Typeable a => a -> f a Source #