Safe Haskell | None |
---|---|
Language | Haskell98 |
- allPackageIds :: Maybe DbPackageIdentifier -> SQL [DbPackageIdentifier]
- allPackages :: Maybe DbPackageIdentifier -> SQL [DbPackage]
- packagesByName :: String -> Maybe DbPackageIdentifier -> SQL [DbPackage]
- getPackage :: DbPackageIdentifier -> SQL (Maybe DbPackage)
- modulesByName :: String -> Maybe DbPackageIdentifier -> SQL [DbModule]
- getSubmodules :: String -> Maybe DbPackageIdentifier -> SQL [DbModule]
- moduleAction :: [PersistValue] -> DbModule
- declsByName :: String -> Maybe DbPackageIdentifier -> SQL [DbDecl]
- declAction :: [PersistValue] -> DbDecl
- createIndexes :: SQL ()
- getDeclsInModule :: String -> Maybe DbPackageIdentifier -> SQL [(DbPackageIdentifier, DbCompleteDecl)]
- getDeclsFromPrefix :: String -> Maybe DbPackageIdentifier -> SQL [(DbPackageIdentifier, DbModule, DbCompleteDecl)]
- getAllDeclInfo :: (DbDeclId, DbDecl) -> SQL DbCompleteDecl
- constructorsByName :: String -> SQL [DbConstructor]
- getModulesWhereDeclarationIs :: String -> SQL [(DbModule, String, String)]
- queryDb :: String -> [String] -> ([PersistValue] -> a) -> SQL [a]
- fromDbText :: PersistValue -> Maybe String
- class HasDbPackage d where
- getDbPackage :: d -> SQL DbPackage
- class HasDbModule d where
- getDbModule :: d -> SQL DbModule
Documentation
allPackageIds :: Maybe DbPackageIdentifier -> SQL [DbPackageIdentifier] Source
Get the identifiers of all packages in the database.
allPackages :: Maybe DbPackageIdentifier -> SQL [DbPackage] Source
Get information of all packages in the database.
packagesByName :: String -> Maybe DbPackageIdentifier -> SQL [DbPackage] Source
Get information of all versions of the package with that name.
getPackage :: DbPackageIdentifier -> SQL (Maybe DbPackage) Source
Get information about a package in the database.
modulesByName :: String -> Maybe DbPackageIdentifier -> SQL [DbModule] Source
Get information about all modules with that name.
getSubmodules :: String -> Maybe DbPackageIdentifier -> SQL [DbModule] Source
Get all the modules hierarchically inside the specified one. For getting the entire list of modules modules, use "" as initial name.
moduleAction :: [PersistValue] -> DbModule Source
declsByName :: String -> Maybe DbPackageIdentifier -> SQL [DbDecl] Source
Get information about all declaration with that name.
declAction :: [PersistValue] -> DbDecl Source
createIndexes :: SQL () Source
getDeclsInModule :: String -> Maybe DbPackageIdentifier -> SQL [(DbPackageIdentifier, DbCompleteDecl)] Source
Gets the declarations inside some module, along with information about which package it lives.
getDeclsFromPrefix :: String -> Maybe DbPackageIdentifier -> SQL [(DbPackageIdentifier, DbModule, DbCompleteDecl)] Source
list declarations matching the given prefix, useful for content assist the prefix either matches the declaration itself or any constructor
getAllDeclInfo :: (DbDeclId, DbDecl) -> SQL DbCompleteDecl Source
constructorsByName :: String -> SQL [DbConstructor] Source
Get information about all constructors with that name.
getModulesWhereDeclarationIs :: String -> SQL [(DbModule, String, String)] Source
Gets a list of modules where a declaration may live
fromDbText :: PersistValue -> Maybe String Source
Gets information from a text value.
class HasDbPackage d where Source
Things that reside on a package.
getDbPackage :: d -> SQL DbPackage Source
class HasDbModule d where Source
Things that reside on a module.
getDbModule :: d -> SQL DbModule Source