Copyright | © 2020-2022 Albert Krewinkel |
---|---|
License | MIT |
Maintainer | Albert Krewinkel <tarleb+hslua@zeitkraut.de> |
Stability | alpha |
Portability | Portable |
Safe Haskell | None |
Language | Haskell2010 |
Marshaling and documenting Haskell functions.
Synopsis
- data Module e = Module {
- moduleName :: Name
- moduleDescription :: Text
- moduleFields :: [Field e]
- moduleFunctions :: [DocumentedFunction e]
- moduleOperations :: [(Operation, DocumentedFunction e)]
- data Field e = Field {
- fieldName :: Text
- fieldDescription :: Text
- fieldPushValue :: LuaE e ()
- data DocumentedFunction e = DocumentedFunction {}
- data FunctionDoc = FunctionDoc {}
- data ParameterDoc = ParameterDoc {}
- data ResultsDoc
- data ResultValueDoc = ResultValueDoc {}
Documented module
Named and documented Lua module.
Module | |
|
Self-documenting module field
Field | |
|
Documented functions
data DocumentedFunction e Source #
Haskell equivallent to CFunction, i.e., function callable from Lua.
Documentation types
data FunctionDoc Source #
Documentation for a Haskell function
FunctionDoc | |
|
Instances
Eq FunctionDoc Source # | |
Defined in HsLua.Packaging.Types (==) :: FunctionDoc -> FunctionDoc -> Bool # (/=) :: FunctionDoc -> FunctionDoc -> Bool # | |
Ord FunctionDoc Source # | |
Defined in HsLua.Packaging.Types compare :: FunctionDoc -> FunctionDoc -> Ordering # (<) :: FunctionDoc -> FunctionDoc -> Bool # (<=) :: FunctionDoc -> FunctionDoc -> Bool # (>) :: FunctionDoc -> FunctionDoc -> Bool # (>=) :: FunctionDoc -> FunctionDoc -> Bool # max :: FunctionDoc -> FunctionDoc -> FunctionDoc # min :: FunctionDoc -> FunctionDoc -> FunctionDoc # | |
Show FunctionDoc Source # | |
Defined in HsLua.Packaging.Types showsPrec :: Int -> FunctionDoc -> ShowS # show :: FunctionDoc -> String # showList :: [FunctionDoc] -> ShowS # |
data ParameterDoc Source #
Documentation for function parameters.
Instances
Eq ParameterDoc Source # | |
Defined in HsLua.Packaging.Types (==) :: ParameterDoc -> ParameterDoc -> Bool # (/=) :: ParameterDoc -> ParameterDoc -> Bool # | |
Ord ParameterDoc Source # | |
Defined in HsLua.Packaging.Types compare :: ParameterDoc -> ParameterDoc -> Ordering # (<) :: ParameterDoc -> ParameterDoc -> Bool # (<=) :: ParameterDoc -> ParameterDoc -> Bool # (>) :: ParameterDoc -> ParameterDoc -> Bool # (>=) :: ParameterDoc -> ParameterDoc -> Bool # max :: ParameterDoc -> ParameterDoc -> ParameterDoc # min :: ParameterDoc -> ParameterDoc -> ParameterDoc # | |
Show ParameterDoc Source # | |
Defined in HsLua.Packaging.Types showsPrec :: Int -> ParameterDoc -> ShowS # show :: ParameterDoc -> String # showList :: [ParameterDoc] -> ShowS # |
data ResultsDoc Source #
Documentation for the return values of a function.
ResultsDocList [ResultValueDoc] | List of individual results |
ResultsDocMult Text | Flexible results |
Instances
Eq ResultsDoc Source # | |
Defined in HsLua.Packaging.Types (==) :: ResultsDoc -> ResultsDoc -> Bool # (/=) :: ResultsDoc -> ResultsDoc -> Bool # | |
Ord ResultsDoc Source # | |
Defined in HsLua.Packaging.Types compare :: ResultsDoc -> ResultsDoc -> Ordering # (<) :: ResultsDoc -> ResultsDoc -> Bool # (<=) :: ResultsDoc -> ResultsDoc -> Bool # (>) :: ResultsDoc -> ResultsDoc -> Bool # (>=) :: ResultsDoc -> ResultsDoc -> Bool # max :: ResultsDoc -> ResultsDoc -> ResultsDoc # min :: ResultsDoc -> ResultsDoc -> ResultsDoc # | |
Show ResultsDoc Source # | |
Defined in HsLua.Packaging.Types showsPrec :: Int -> ResultsDoc -> ShowS # show :: ResultsDoc -> String # showList :: [ResultsDoc] -> ShowS # |
data ResultValueDoc Source #
Documentation for a single return value of a function.
Instances
Eq ResultValueDoc Source # | |
Defined in HsLua.Packaging.Types (==) :: ResultValueDoc -> ResultValueDoc -> Bool # (/=) :: ResultValueDoc -> ResultValueDoc -> Bool # | |
Ord ResultValueDoc Source # | |
Defined in HsLua.Packaging.Types compare :: ResultValueDoc -> ResultValueDoc -> Ordering # (<) :: ResultValueDoc -> ResultValueDoc -> Bool # (<=) :: ResultValueDoc -> ResultValueDoc -> Bool # (>) :: ResultValueDoc -> ResultValueDoc -> Bool # (>=) :: ResultValueDoc -> ResultValueDoc -> Bool # max :: ResultValueDoc -> ResultValueDoc -> ResultValueDoc # min :: ResultValueDoc -> ResultValueDoc -> ResultValueDoc # | |
Show ResultValueDoc Source # | |
Defined in HsLua.Packaging.Types showsPrec :: Int -> ResultValueDoc -> ShowS # show :: ResultValueDoc -> String # showList :: [ResultValueDoc] -> ShowS # |