static-closure

Serialisable static pointers to functions

https://github.com/clintonmead/static-closure#readme

Latest on Hackage:0.1.0.0

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed by Clinton Mead
Maintained by [email protected]

A more generalised and expanded version of the ideas found in distributed-closure in the following ways:-

  1. This library allows for the core serialisable type to any type, although we currently only implement "Binary".

  2. Template Haskell is used to implement dictionary instances for all instances of "Binary" in all packages shipped with GHC with the assistance of ghc-instances.

This library is very much a work in progress. It is largely untested except to check it compiles. Future tasks to do include:-

  1. Writing some test cases to make sure this actually works.

  2. Integrating with freelude, the restricted "pure" function is perfect to define in "freelude".

  3. Writing some more Template Haskell functions to allow easy integration with user defined types.

  4. Linking this up with acid-state in a somewhat sensible way.