static-closure-0.1.0.0: Serialisable static pointers to functions

Safe HaskellNone
LanguageHaskell2010

Control.Static.Closure.IsClosure

Documentation

class IsStatic t => IsClosure t where Source #

Minimal complete definition

closure, unclosure, cap

Methods

closure :: StaticPtr a -> t a Source #

unclosure :: t a -> a Source #

cap :: t (a -> b) -> t a -> t b Source #

cmap :: StaticPtr (a -> b) -> t a -> t b Source #

Instances

IsClosure (Closure t) Source # 

Methods

closure :: StaticPtr a -> Closure t a Source #

unclosure :: Closure t a -> a Source #

cap :: Closure t (a -> b) -> Closure t a -> Closure t b Source #

cmap :: StaticPtr (a -> b) -> Closure t a -> Closure t b Source #