Safe Haskell | None |
---|
- 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)]
- 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
moduleAction :: [PersistValue] -> DbModuleSource
declsByName :: String -> Maybe DbPackageIdentifier -> SQL [DbDecl]Source
Get information about all declaration with that name.
declAction :: [PersistValue] -> DbDeclSource
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 DbCompleteDeclSource
constructorsByName :: String -> SQL [DbConstructor]Source
Get information about all constructors with that name.
getModulesWhereDeclarationIs :: String -> SQL [(DbModule, String)]Source
Gets a list of modules where a declaration may live
fromDbText :: PersistValue -> Maybe StringSource
Gets information from a text value.
class HasDbPackage d whereSource
Things that reside on a package.
getDbPackage :: d -> SQL DbPackageSource
class HasDbModule d whereSource
Things that reside on a module.
getDbModule :: d -> SQL DbModuleSource