ForSyDe-3.0: ForSyDe's Haskell-embedded Domain Specific Language.Source codeContentsIndex
ForSyDe.Process
Portabilityportable
Stabilityexperimental
Maintainerforsyde-dev@ict.kth.se
Description
Publicly usable functions to create primitive processes. (Reexports ForSyDe.Process.SynchProc)
Synopsis
data ProcFun a
newProcFun :: Q [Dec] -> ExpQ
defArgVal :: (Lift a, ProcType a) => ProcFun (a -> b) -> a -> ProcFun b
defArgPF :: ProcFun (a -> b) -> ProcFun a -> ProcFun b
class (Data a, Lift a) => ProcType a
module ForSyDe.Process.SynchProc
Documentation
data ProcFun a Source
A Process Function
newProcFun :: Q [Dec] -> ExpQSource

Template Haskell constructor for ProcFun, here is an example on how to use it

  plus1Fun :: ProcFun (Int -> Int)
  plus1Fun = $(newProcFun [d| plus1 :: Int -> Int
                              plus1 n = n + 1     |])
defArgVal :: (Lift a, ProcType a) => ProcFun (a -> b) -> a -> ProcFun bSource
Sets a default value for an argument of the process function
defArgPF :: ProcFun (a -> b) -> ProcFun a -> ProcFun bSource
Sets a default value for an argument of the process function when the argument is a process function itself
class (Data a, Lift a) => ProcType a Source
Class used to constrain the arguments (values and ProcFuns) taken by process constructors
show/hide Instances
module ForSyDe.Process.SynchProc
Produced by Haddock version 2.1.0