| Portability | portable |
|---|---|
| Stability | provisional |
| Maintainer | Edward Kmett <ekmett@gmail.com> |
| Safe Haskell | None |
Control.Parallel.Strategies.Lens
Description
A Lens or Traversal can be used to take the role of Traversable in
Control.Parallel.Strategies, enabling those combinators to work with
monomorphic containers.
- evalOf :: SimpleLensLike Eval a b -> Strategy b -> Strategy a
- parOf :: SimpleLensLike Eval a b -> Strategy b -> Strategy a
- after :: Strategy a -> LensLike f a b c d -> LensLike f a b c d
- throughout :: Strategy a -> LensLike f a b c d -> LensLike f a b c d
Documentation
evalOf :: SimpleLensLike Eval a b -> Strategy b -> Strategy aSource
Evaluate the targets of a Lens or Traversal into a data structure
according to the given Strategy.
evalTraversable=evalOftraverse=traverseevalOf=id
evalOf::SimpleLensa b ->Strategyb ->StrategyaevalOf::SimpleTraversala b ->Strategyb ->StrategyaevalOf:: (b ->Evalb) -> a ->Evala) ->Strategyb ->Strategya
parOf :: SimpleLensLike Eval a b -> Strategy b -> Strategy aSource
Evaluate the targets of a Lens or Traversal according into a
data structure according to a given Strategy in parallel.
parTraversable=parOftraverse
parOf::SimpleLensa b ->Strategyb ->StrategyaparOf::SimpleTraversala b ->Strategyb ->StrategyaparOf:: ((b ->Evalb) -> a ->Evala) ->Strategyb ->Strategya
throughout :: Strategy a -> LensLike f a b c d -> LensLike f a b c dSource
Transform a Lens, Fold, Getter, Setter or Traversal to
evaluate its argument according to a given Strategy in parallel with evaluating.
throughoutrdeepseqtraverse::Traversablet =>Strategya ->Strategy[a]