hoogle-4.1: Haskell API Search

Hoogle

Contents

Description

The Hoogle API.

Synopsis

Utility types

data TagStr Source

Constructors

Str String

Plain text.

Tags [TagStr]

A list of tags one after another.

TagBold TagStr

Bold text.

TagEmph TagStr

Underlined/italic text.

TagLink String TagStr

A hyperlink to a URL.

TagColor Int TagStr

Colored text. Index into a 0-based palette.

showTagText :: TagStr -> StringSource

Show a TagStr as a string, without any formatting.

showTagANSI :: TagStr -> StringSource

Show a TagStr on a console with ANSI escape sequences.

showTagHTML :: TagStr -> StringSource

Show a TagStr as HTML, using CSS classes for color styling.

showTagHTMLWith :: (TagStr -> Maybe String) -> TagStr -> StringSource

Show TagStr with an override for specific tags.

Database

createDatabase :: Language -> [Database] -> String -> ([ParseError], Database)Source

From a textbase lines we have currently

Query

Score

scoring :: [(Score, Score)] -> IO StringSource

A list of scores where one is lower than the other, returns the score result. In the IO monad since it may require randomness, and it may output status messages while solving, particularly if in Verbose mode.

Search

data Result Source

Constructors

Result 

Fields

package :: Maybe (URL, String)
 
modul :: Maybe (URL, String)
 
self :: (URL, TagStr)
 
docs :: TagStr
 

searchRange :: (Int, Int) -> Database -> Query -> [(Score, Result)]Source

A pair of bounds. These bounds are the lowest and highest indices in the array, in that order. For example, the first 10 elements are (0,9) and the next 10 are (10,19)