happstack-state-0.2.1: Event-based distributed state.Source codeContentsIndex
Happstack.State.ComponentTH
Synopsis
mkMethods :: Name -> [Name] -> Q [Dec]
Documentation
mkMethods :: Name -> [Name] -> Q [Dec]Source
This function will derive, for the provided type name and the provided list of methods, an instance of Methods for the given type and necessary instance of UpdateEvent and QueryEvent to make the provided list of functions into Methods. This TH splice needs to be executed for any MACID state type in order to have the necessary code for event handling generated. Ex: $(mkMethods ''Foo ['fooUpdate,fooQuery])
Produced by Haddock version 2.4.2