| Copyright | © 2020-2021 Albert Krewinkel |
|---|---|
| License | MIT |
| Maintainer | Albert Krewinkel <tarleb+hslua@zeitkraut.de> |
| Stability | alpha |
| Portability | Portable |
| Safe Haskell | None |
| Language | Haskell2010 |
HsLua.Packaging.Types
Description
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.
Constructors
| Module | |
Fields
| |
Self-documenting module field
Constructors
| Field | |
Fields
| |
Documented functions
data DocumentedFunction e Source #
Haskell equivallent to CFunction, i.e., function callable from Lua.
Constructors
| DocumentedFunction | |
Fields
| |
Documentation types
data FunctionDoc Source #
Documentation for a Haskell function
Constructors
| FunctionDoc | |
Fields
| |
Instances
| Eq FunctionDoc Source # | |
Defined in HsLua.Packaging.Types | |
| Ord FunctionDoc Source # | |
Defined in HsLua.Packaging.Types Methods 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 Methods showsPrec :: Int -> FunctionDoc -> ShowS # show :: FunctionDoc -> String # showList :: [FunctionDoc] -> ShowS # | |
data ParameterDoc Source #
Documentation for function parameters.
Constructors
| ParameterDoc | |
Fields | |
Instances
| Eq ParameterDoc Source # | |
Defined in HsLua.Packaging.Types | |
| Ord ParameterDoc Source # | |
Defined in HsLua.Packaging.Types Methods 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 Methods showsPrec :: Int -> ParameterDoc -> ShowS # show :: ParameterDoc -> String # showList :: [ParameterDoc] -> ShowS # | |
data ResultsDoc Source #
Documentation for the return values of a function.
Constructors
| ResultsDocList [ResultValueDoc] | List of individual results |
| ResultsDocMult Text | Flexible results |
Instances
| Eq ResultsDoc Source # | |
Defined in HsLua.Packaging.Types | |
| Ord ResultsDoc Source # | |
Defined in HsLua.Packaging.Types Methods 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 Methods showsPrec :: Int -> ResultsDoc -> ShowS # show :: ResultsDoc -> String # showList :: [ResultsDoc] -> ShowS # | |
data ResultValueDoc Source #
Documentation for a single return value of a function.
Constructors
| ResultValueDoc | |
Fields | |
Instances
| Eq ResultValueDoc Source # | |
Defined in HsLua.Packaging.Types Methods (==) :: ResultValueDoc -> ResultValueDoc -> Bool # (/=) :: ResultValueDoc -> ResultValueDoc -> Bool # | |
| Ord ResultValueDoc Source # | |
Defined in HsLua.Packaging.Types Methods 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 Methods showsPrec :: Int -> ResultValueDoc -> ShowS # show :: ResultValueDoc -> String # showList :: [ResultValueDoc] -> ShowS # | |