Parallel-Arrows-ParMonad-0.1.1.0: Par Monad (@monad-par@) based backend for @Parallel-Arrows-Definition@.

Safe HaskellNone
LanguageHaskell2010

Parrows.ParMonad

Documentation

type Strategy a = a -> Par (IVar a) Source #

data Conf a Source #

Constructors

Conf (Strategy a) 

Instances

ArrowChoice arr => ArrowParallel arr a b (Conf b) Source # 

Methods

parEvalN :: Conf b -> [arr a b] -> arr [a] [b] #

(ArrowChoice arr, ArrowParallel arr a b (Conf b)) => ArrowLoopParallel arr a b (Conf b) Source # 

Methods

loopParEvalN :: Conf b -> [arr a b] -> arr [a] [b] #

postLoopParEvalN :: Conf b -> [arr a b] -> arr [a] [b] #

Future BasicFuture a (Conf a) Source # 

Methods

put :: Arrow arr => Conf a -> arr a (BasicFuture a) #

get :: Arrow arr => Conf a -> arr (BasicFuture a) a #

defaultConf :: NFData b => [arr a b] -> Conf b Source #

stratToConf :: [arr a b] -> Strategy b -> Conf b Source #