scion-browser-0.4.3: Command-line interface for browsing and searching packages documentation

Safe HaskellNone
LanguageHaskell98

Scion.PersistentBrowser.Query

Synopsis

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.

declsByName :: String -> Maybe DbPackageIdentifier -> SQL [DbDecl] Source

Get information about all declaration with that name.

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

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

queryDb :: String -> [String] -> ([PersistValue] -> a) -> SQL [a] Source

Executes a query.

fromDbText :: PersistValue -> Maybe String Source

Gets information from a text value.

class HasDbPackage d where Source

Things that reside on a package.

class HasDbModule d where Source

Things that reside on a module.