distributed-closure-0.2.1.0: Serializable closures for distributed programming.

Safe HaskellNone
LanguageHaskell2010

Control.Distributed.Closure.TH

Description

Utility Template Haskell macros.

Synopsis

Documentation

cstatic :: Name -> ExpQ Source

$(cstatic 'foo) is an abbreviation for closure (static foo).

cdict :: ExpQ Source

Abbreviation for closure (static Dict). Example usage:

foo :: Closure (Dict (Num a)) -> ...

foo $cdict ...

cdictFrom :: Natural -> ExpQ Source

Create a static dictionary from the given dictionaries. Example usage:

$cdictFrom 2 Dict Dict :: Closure (Static (Dict (Eq a, Show a)))