happstack-state-0.4.1: Event-based distributed state.Source codeContentsIndex
mkMethods :: Name -> [Name] -> Q [Dec]
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.6.1