Safe Haskell | None |
---|
Combines the construction of RPC server components and their Python stubs.
- pythonIndentStep :: Int
- nest' :: Doc -> Doc
- genericInvokeName :: String
- socketPathName :: String
- apply :: String -> [Doc] -> Doc
- emptyLine :: Doc
- lowerFirst :: String -> String
- upperFirst :: String -> String
- toFunc :: String -> [Type] -> Q Doc
- nameToFunc :: Name -> Q Doc
- namesToClass :: String -> Doc -> [Name] -> Q Doc
- genPyUDSRpcStub :: String -> String -> [Name] -> Q Doc
- genPyUDSRpcStubStr :: String -> String -> [Name] -> Q Exp
Documentation
pythonIndentStep :: IntSource
genericInvokeName :: StringSource
socketPathName :: StringSource
lowerFirst :: String -> StringSource
upperFirst :: String -> StringSource
nameToFunc :: Name -> Q DocSource
namesToClass :: String -> Doc -> [Name] -> Q DocSource
:: String | the name of the class to be generated |
-> String | the name of the constant from |
-> [Name] | names of functions to include |
-> Q Doc |
Takes a list of function names and creates a RPC handler that delegates calls to them, as well as writes out the corresponding Python stub.
See mkRpcM
for the requirements on the passed functions and the returned
expression.
:: String | the name of the class to be generated |
-> String | the constant in |
-> [Name] | functions to include |
-> Q Exp |