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

Safe HaskellNone

Scion.PersistentBrowser

Synopsis

Documentation

data Doc Source

Documentation for an item. Now it is simply a Text element.

Constructors

NoDoc 
Doc Text 

Instances

Show Doc 
SrcInfo Doc 

type Documented a = a DocSource

A documented item.

data Package l Source

A package.

Constructors

Package l PackageIdentifier (Map String (Documented Module)) 

Instances

Show l => Show (Package l) 
Package (Package l) 

type Database = Map PackageIdentifier (Documented Package)Source

A Database saves a list of packages.

getNameString :: Name l -> StringSource

Gets the name inside a Name constructor.

getQNameString :: QName l -> StringSource

Gets the qualified name as a string.

class Annotated e => Named e whereSource

Methods

getName :: Show l => e l -> StringSource

class (Named parent, Named child) => DocItem parent child | parent -> child whereSource

Methods

getChildren :: Show l => parent l -> [child l]Source

getChild :: Show l => parent l -> String -> Maybe (child l)Source

runLogging :: MonadIO m => LoggingT m a -> m aSource

wrapper around logging methods, so we can enable logging when we debug

data DbPackageGeneric backend Source

Constructors

DbPackage 

Fields

dbPackageName :: !String
 
dbPackageVersion :: !String
 
dbPackageDoc :: !(Maybe String)
 

data DbDeclGeneric backend Source

Constructors

DbDecl 

Fields

dbDeclDeclType :: !DbDeclType
 
dbDeclName :: !String
 
dbDeclDoc :: !(Maybe String)
 
dbDeclKind :: !(Maybe String)
 
dbDeclSignature :: !(Maybe String)
 
dbDeclEquals :: !(Maybe String)
 
dbDeclModuleId :: !(KeyBackend backend (DbModuleGeneric backend))
 

data DbTyVarGeneric backend Source

Constructors

DbTyVar 

Fields

dbTyVarName :: !String
 
dbTyVarDeclId :: !(KeyBackend backend (DbDeclGeneric backend))
 

data DbFunDepGeneric backend Source

Constructors

DbFunDep 

Fields

dbFunDepName :: !String
 
dbFunDepDeclId :: !(KeyBackend backend (DbDeclGeneric backend))
 

data DbContextGeneric backend Source

Constructors

DbContext 

Fields

dbContextShown :: !String
 
dbContextDeclId :: !(KeyBackend backend (DbDeclGeneric backend))
 

data DbPackageIdentifier Source

Information needed to search a package.

Constructors

DbPackageIdentifier String String 

data DbCompleteDecl Source

Complete information for a declaration. Look at its ToJSON instance to know which one is used in each kind of declaration.