Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- dynCons :: Dynamic -> Dynamic -> Maybe Dynamic
- dynPure :: forall env. (Applicative env, Typeable env) => Dynamic -> Dynamic
- dynJoin :: forall env. (Monad env, Typeable env) => Dynamic -> Maybe Dynamic
- dynPureJoinId :: forall env. (Monad env, Typeable env) => Dynamic -> Dynamic
- dynEmptyList :: Dynamic -> Dynamic
- dynMerge :: [Dynamic] -> Maybe Dynamic
- dynMergeM :: forall f. (Monad f, Typeable f) => [Dynamic] -> Maybe Dynamic
- dynFmap :: forall f. (Functor f, Typeable f) => Dynamic -> Dynamic -> Maybe Dynamic
- dynAp :: forall f. (Applicative f, Typeable f) => Dynamic -> Dynamic -> Maybe Dynamic
- dynApplyFmapAp :: forall f. (Applicative f, Typeable f) => Dynamic -> Dynamic -> Maybe Dynamic
Utilities for working with Dynamics
dynPure :: forall env. (Applicative env, Typeable env) => Dynamic -> Dynamic Source #
Apply pure
to a value inside a Dynamic
.
Note that the type of Applicative
you want to
return must be manually specified with visible type application.
dynEmptyList :: Dynamic -> Dynamic Source #
dynMergeM :: forall f. (Monad f, Typeable f) => [Dynamic] -> Maybe Dynamic Source #
Turns a list of Dynamic
values into a Dynamic
list of values;
that is to say it embeds the list of items inside a single Dynamic
.
Fails if all values are not of the same type or an empty list is
provided. Takes a Monad
type
variable via visible type application to allow mixing wrapped and
unwrapped values—use dynMerge
if this is undesirable.
<*>
lifted to work with a Dynamic
function and value. Fails if
<*>
would fail with the actual types of the function and value.
Requires the desired Applicative
to be specified with visible type
application.
Applies a Dynamic
function to a Dynamic
value, utilizing
fmap
, pure
, or <*>
as needed if the function, the argument, or
both are wrapped in an Applicative
.
Requires the desired Applicative
to be specified with visible type
application.