Copyright | (c) 2011-2018 Ian-Woo Kim |
---|---|
License | BSD3 |
Maintainer | Ian-Woo Kim <ianwookim@gmail.com> |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell98 |
Synopsis
- getcabal :: Either TemplateClass Class -> Cabal
- getparents :: Either b Class -> [Either a Class]
- getFFIName :: Either TemplateClass Class -> String
- getPkgName :: Either TemplateClass Class -> CabalName
- extractClassFromType :: Types -> [Either TemplateClass Class]
- class_allparents :: Class -> [Class]
- getClassModuleBase :: Class -> String
- getTClassModuleBase :: TemplateClass -> String
- mkDaughterMap :: [Class] -> DaughterMap
- mkDaughterSelfMap :: [Class] -> DaughterMap
- data Dep4Func = Dep4Func {}
- extractClassDep :: Function -> Dep4Func
- extractClassDepForTmplFun :: TemplateFunction -> Dep4Func
- extractClassDep4TmplMemberFun :: TemplateMemberFunction -> Dep4Func
- extractClassDepForTopLevelFunction :: TopLevelFunction -> Dep4Func
- mkModuleDepRaw :: Either TemplateClass Class -> [Either TemplateClass Class]
- isNotInSamePackageWith :: Either TemplateClass Class -> Either TemplateClass Class -> Bool
- isInSamePackageButNotInheritedBy :: Either TemplateClass Class -> Either TemplateClass Class -> Bool
- mkModuleDepHighNonSource :: Either TemplateClass Class -> [Either TemplateClass Class]
- mkModuleDepHighSource :: Either TemplateClass Class -> [Either TemplateClass Class]
- mkModuleDepCpp :: Either TemplateClass Class -> [Either TemplateClass Class]
- mkModuleDepFFI1 :: Either TemplateClass Class -> [Either TemplateClass Class]
- mkModuleDepFFI :: Either TemplateClass Class -> [Either TemplateClass Class]
- mkClassModule :: (ModuleUnit -> ModuleUnitImports) -> [(String, [String])] -> Class -> ClassModule
- findModuleUnitImports :: ModuleUnitMap -> ModuleUnit -> ModuleUnitImports
- mkTCM :: (TemplateClass, HeaderName) -> TemplateClassModule
- mkPackageConfig :: (CabalName, ModuleUnit -> ModuleUnitImports) -> ([Class], [TopLevelFunction], [(TemplateClass, HeaderName)], [(String, [String])]) -> [AddCInc] -> [AddCSrc] -> PackageConfig
- mkHSBOOTCandidateList :: [ClassModule] -> [String]
- mkPkgHeaderFileName :: Class -> HeaderName
- mkPkgCppFileName :: Class -> String
- mkPkgIncludeHeadersInH :: Class -> [HeaderName]
- mkPkgIncludeHeadersInCPP :: Class -> [HeaderName]
- mkCIH :: (ModuleUnit -> ModuleUnitImports) -> Class -> ClassImportHeader
- mkTIH :: CabalName -> (ModuleUnit -> ModuleUnitImports) -> [ClassImportHeader] -> [TopLevelFunction] -> TopLevelImportHeader
Documentation
getFFIName :: Either TemplateClass Class -> String Source #
extractClassFromType :: Types -> [Either TemplateClass Class] Source #
class_allparents :: Class -> [Class] Source #
getClassModuleBase :: Class -> String 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 #
isInSamePackageButNotInheritedBy Source #
:: Either TemplateClass Class | y |
-> Either TemplateClass Class | x |
-> Bool |
mkClassModule :: (ModuleUnit -> ModuleUnitImports) -> [(String, [String])] -> Class -> ClassModule Source #
mkTCM :: (TemplateClass, HeaderName) -> TemplateClassModule Source #
:: (CabalName, ModuleUnit -> ModuleUnitImports) | (package name,getImports) |
-> ([Class], [TopLevelFunction], [(TemplateClass, HeaderName)], [(String, [String])]) | |
-> [AddCInc] | |
-> [AddCSrc] | |
-> PackageConfig |
mkHSBOOTCandidateList :: [ClassModule] -> [String] 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] -> [TopLevelFunction] -> TopLevelImportHeader Source #
for top-level