| Copyright | (C) 2012-2015 Edward Kmett |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Edward Kmett <ekmett@gmail.com> |
| Stability | provisional |
| Portability | portable |
| Safe Haskell | Trustworthy |
| Language | Haskell98 |
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.
Documentation
evalOf :: LensLike' Eval s a -> Strategy a -> Strategy s Source
Evaluate the targets of a Lens or Traversal into a data structure
according to the given Strategy.
evalTraversable=evalOftraverse=traverseevalOf=id
evalOf::Lens's a ->Strategya ->StrategysevalOf::Traversal's a ->Strategya ->StrategysevalOf:: (a ->Evala) -> s ->Evals) ->Strategya ->Strategys
parOf :: LensLike' Eval s a -> Strategy a -> Strategy s Source
Evaluate the targets of a Lens or Traversal according into a
data structure according to a given Strategy in parallel.
parTraversable=parOftraverse
parOf::Lens's a ->Strategya ->StrategysparOf::Traversal's a ->Strategya ->StrategysparOf:: ((a ->Evala) -> s ->Evals) ->Strategya ->Strategys