hoogle

Hoogle.Query.Type

Synopsis

Documentation

data Query

A query, representing a user input.

Constructors

Query 

Fields

names :: [String]
 
typeSig :: Maybe TypeSig
 
scope :: [Scope]
 

data Scope

Constructors

Scope Bool Category String 

queryDatabases :: Query -> [String]

Given a query, return the list of packages that should be searched. Each package will be the name of a database, without any file path or extension included.

queryPackages :: Query -> [(Bool, String)]

Return those packages which are explicitly excluded (paired with False) or included (paired with True) in the query.

querySetPackage :: Maybe Bool -> String -> Query -> Query

Set the state of a package within a query. Nothing means delete the package, Just True for add it, and Just False for remove it.