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

Safe HaskellNone
LanguageHaskell98

Scion.PersistentBrowser

Synopsis

Documentation

data Doc Source

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

Constructors

NoDoc 
Doc Text 

Instances

type Documented a = a Doc Source

A documented item.

data Package l Source

A package.

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 -> String Source

Gets the name inside a Name constructor.

getQNameString :: QName l -> String Source

Gets the qualified name as a string.

class Annotated e => Named e where Source

Methods

getName :: Show l => e l -> String Source

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

Minimal complete definition

getChildren

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 a Source

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

data DbModuleGeneric backend Source

Constructors

DbModule 

Instances

ToJSON DbModule 
HasDbModule DbModule 
HasDbPackage DbModule 
PersistFieldSql (DbModuleGeneric backend) 
PersistEntity (DbModuleGeneric backend) 
PersistField (DbModuleGeneric backend) 
data Unique (DbModuleGeneric backend) 
type PersistEntityBackend (DbModuleGeneric backend) = backend 
data EntityField (DbModuleGeneric backend) where 

data DbDeclGeneric backend Source

Instances

HasDbModule DbDecl 
HasDbPackage DbDecl 
PersistFieldSql (DbDeclGeneric backend) 
PersistEntity (DbDeclGeneric backend) 
PersistField (DbDeclGeneric backend) 
data Unique (DbDeclGeneric backend) 
type PersistEntityBackend (DbDeclGeneric backend) = backend 
data EntityField (DbDeclGeneric backend) where 

data DbTyVarGeneric backend Source

Constructors

DbTyVar 

Fields

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

Instances

ToJSON DbTyVar 
PersistFieldSql (DbTyVarGeneric backend) 
PersistEntity (DbTyVarGeneric backend) 
PersistField (DbTyVarGeneric backend) 
data Unique (DbTyVarGeneric backend) 
type PersistEntityBackend (DbTyVarGeneric backend) = backend 
data EntityField (DbTyVarGeneric backend) where 

data DbFunDepGeneric backend Source

Constructors

DbFunDep 

Fields

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

Instances

ToJSON DbFunDep 
PersistFieldSql (DbFunDepGeneric backend) 
PersistEntity (DbFunDepGeneric backend) 
PersistField (DbFunDepGeneric backend) 
data Unique (DbFunDepGeneric backend) 
type PersistEntityBackend (DbFunDepGeneric backend) = backend 
data EntityField (DbFunDepGeneric backend) where 

data DbContextGeneric backend Source

Constructors

DbContext 

Fields

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

Instances

ToJSON DbContext 
PersistFieldSql (DbContextGeneric backend) 
PersistEntity (DbContextGeneric backend) 
PersistField (DbContextGeneric backend) 
data Unique (DbContextGeneric backend) 
type PersistEntityBackend (DbContextGeneric backend) = backend 
data EntityField (DbContextGeneric backend) where 

data DbCompleteDecl Source

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