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

Scion.Browser

Synopsis

Documentation

type Documented a = a DocSource

A documented item.

data Package l Source

A package.

Instances

Show l => Show (Package l) 
Package (Package l) 
ToJSON (Documented Package) 
Serialize l_1627457893 => Serialize (Package l_1627457893) 
NFData l_1627457893 => NFData (Package l_1627457893) 

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