Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- getcabal :: Either TemplateClass Class -> Cabal
- getparents :: Either a Class -> [Either a Class]
- getFFIName :: Either TemplateClass Class -> String
- getPkgName :: Either TemplateClass Class -> CabalName
- extractClassFromType :: Types -> [Either TemplateClass Class]
- classFromArg :: Arg -> [Either TemplateClass Class]
- class_allparents :: Class -> [Class]
- mkDaughterMap :: [Class] -> DaughterMap
- mkDaughterSelfMap :: [Class] -> DaughterMap
- data Dep4Func = Dep4Func {}
- extractClassDep :: Function -> Dep4Func
- extractClassDepForTmplFun :: TemplateFunction -> Dep4Func
- extractClassDep4TmplMemberFun :: TemplateMemberFunction -> Dep4Func
- extractClassDepForTLOrdinary :: TLOrdinary -> Dep4Func
- extractClassDepForTLTemplate :: TLTemplate -> Dep4Func
- mkDepFFI :: Class -> [UClassSubmodule]
- calculateDependency :: UClassSubmodule -> [UClassSubmodule]
- isNotInSamePackageWith :: Either TemplateClass Class -> Either TemplateClass Class -> Bool
- isInSamePackageButNotInheritedBy :: Either TemplateClass Class -> Either TemplateClass Class -> Bool
- mkModuleDepCpp :: Either TemplateClass Class -> [Either TemplateClass Class]
- mkTopLevelDep :: TopLevel -> [UClassSubmodule]
- mkClassModule :: (ModuleUnit -> ModuleUnitImports) -> [(String, [String])] -> Class -> ClassModule
- findModuleUnitImports :: ModuleUnitMap -> ModuleUnit -> ModuleUnitImports
- mkTCM :: TemplateClassImportHeader -> TemplateClassModule
- mkPackageConfig :: (CabalName, ModuleUnit -> ModuleUnitImports) -> ([Class], [TopLevel], [TemplateClassImportHeader], [(String, [String])]) -> [AddCInc] -> [AddCSrc] -> PackageConfig
- mkPkgHeaderFileName :: Class -> HeaderName
- mkPkgCppFileName :: Class -> String
- mkPkgIncludeHeadersInH :: Class -> [HeaderName]
- mkPkgIncludeHeadersInCPP :: Class -> [HeaderName]
- mkCIH :: (ModuleUnit -> ModuleUnitImports) -> Class -> ClassImportHeader
- mkTIH :: CabalName -> (ModuleUnit -> ModuleUnitImports) -> [ClassImportHeader] -> [TopLevel] -> TopLevelImportHeader
Documentation
getFFIName :: Either TemplateClass Class -> String Source #
extractClassFromType :: Types -> [Either TemplateClass Class] Source #
classFromArg :: Arg -> [Either TemplateClass Class] Source #
class_allparents :: Class -> [Class] Source #
mkDaughterMap :: [Class] -> DaughterMap Source #
Daughter map not including itself
mkDaughterSelfMap :: [Class] -> DaughterMap Source #
Daughter Map including itself as a daughter
class dependency for a given function
extractClassDep :: Function -> Dep4Func Source #
mkDepFFI :: Class -> [UClassSubmodule] Source #
isInSamePackageButNotInheritedBy Source #
:: Either TemplateClass Class | y |
-> Either TemplateClass Class | x |
-> Bool |
mkTopLevelDep :: TopLevel -> [UClassSubmodule] Source #
Find module-level dependency per each toplevel function/template function.
mkClassModule :: (ModuleUnit -> ModuleUnitImports) -> [(String, [String])] -> Class -> ClassModule Source #
:: (CabalName, ModuleUnit -> ModuleUnitImports) | (package name,getImports) |
-> ([Class], [TopLevel], [TemplateClassImportHeader], [(String, [String])]) | |
-> [AddCInc] | |
-> [AddCSrc] | |
-> PackageConfig |
mkPkgHeaderFileName :: Class -> HeaderName Source #
mkPkgCppFileName :: Class -> String Source #
mkPkgIncludeHeadersInH :: Class -> [HeaderName] Source #
mkPkgIncludeHeadersInCPP :: Class -> [HeaderName] Source #
:: (ModuleUnit -> ModuleUnitImports) | (mk namespace and include headers) |
-> Class | |
-> ClassImportHeader |
mkTIH :: CabalName -> (ModuleUnit -> ModuleUnitImports) -> [ClassImportHeader] -> [TopLevel] -> TopLevelImportHeader Source #
for top-level