Safe Haskell | None |
---|---|
Language | Haskell2010 |
High level Hoogle API
- data Database
- withDatabase :: NFData a => FilePath -> (Database -> IO a) -> IO a
- searchDatabase :: Database -> String -> [Target]
- defaultDatabaseLocation :: IO FilePath
- data Target = Target {
- targetURL :: URL
- targetPackage :: Maybe (String, URL)
- targetModule :: Maybe (String, URL)
- targetType :: String
- targetItem :: String
- targetDocs :: String
- type URL = String
- hoogle :: [String] -> IO ()
- targetInfo :: Target -> String
- targetResultDisplay :: Bool -> Target -> String
Documentation
withDatabase :: NFData a => FilePath -> (Database -> IO a) -> IO a Source
Load a database from a file.
searchDatabase :: Database -> String -> [Target] Source
Search a database, given a query string, produces a list of results.
defaultDatabaseLocation :: IO FilePath Source
The default location of a database
A location of documentation.
Target | |
|
targetInfo :: Target -> String Source
Returns the details printed out when hoogle --info is called
targetResultDisplay :: Bool -> Target -> String Source
Returns the Target formatted as an item to display in the results | Bool argument decides whether links are shown