Safe Haskell | None |
---|---|
Language | Haskell2010 |
High level Hoogle API
Synopsis
- 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