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

Safe HaskellSafe-Infered

Scion.PersistentBrowser.Query

Synopsis

Documentation

allPackageIds :: Maybe DbPackageIdentifier -> SqlPersist IO [DbPackageIdentifier]Source

Get the identifiers of all packages in the database.

allPackages :: Maybe DbPackageIdentifier -> SqlPersist IO [DbPackage]Source

Get information of all packages in the database.

packagesByName :: String -> Maybe DbPackageIdentifier -> SqlPersist IO [DbPackage]Source

Get information of all versions of the package with that name.

getPackage :: DbPackageIdentifier -> SqlPersist IO (Maybe DbPackage)Source

Get information about a package in the database.

modulesByName :: String -> Maybe DbPackageIdentifier -> SqlPersist IO [DbModule]Source

Get information about all modules with that name.

declsByName :: String -> Maybe DbPackageIdentifier -> SqlPersist IO [DbDecl]Source

Get information about all declaration with that name.

getDeclsInModule :: String -> Maybe DbPackageIdentifier -> SqlPersist IO [(DbPackageIdentifier, DbCompleteDecl)]Source

Gets the declarations inside some module, along with information about which package it lives.

constructorsByName :: String -> SqlPersist IO [DbConstructor]Source

Get information about all constructors with that name.

getModulesWhereDeclarationIs :: String -> SqlPersist IO [DbModule]Source

Gets a list of modules where a declaration may live

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

Executes a query.

fromDbText :: PersistValue -> Maybe StringSource

Gets information from a text value.

class HasDbPackage d whereSource

Things that reside on a package.

class HasDbModule d whereSource

Things that reside on a module.