feldspar-language-0.7: A functional embedded language for DSP and parallelism

Safe HaskellNone
LanguageHaskell2010

Feldspar.Par

Documentation

data P a Source

Instances

Monad P 
Functor P 
Applicative P 
Syntax a => Syntactic (P a) 
type Internal (P a) = Par (Internal a) 
type Domain (P a) = FeldDomain 

data IVar a Source

Instances

Syntax a => Syntactic (IVar a) 
type Internal (IVar a) = IV (Internal a) 
type Domain (IVar a) = FeldDomain 

runPar :: Syntax a => P a -> a Source

new :: Syntax a => P (IVar a) Source

get :: Syntax a => IVar a -> P a Source

put :: Syntax a => IVar a -> a -> P () Source

fork :: P () -> P () Source

yield :: P () Source

spawn :: Syntax a => P a -> P (IVar a) Source

pval :: Syntax a => a -> P (IVar a) Source

parMap :: Syntax b => (a -> b) -> [a] -> P [b] Source

parMapM :: Syntax b => (a -> P b) -> [a] -> P [b] Source

divConq :: Syntax b => (a -> Bool) -> (a -> [a]) -> ([b] -> b) -> (a -> b) -> a -> P b Source