yi-core-0.19.2: Yi editor core library
LicenseGPL-2
Maintaineryi-devel@googlegroups.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010
ExtensionsOverloadedStrings

Yi.Hoogle

Description

Provides functions for calling Hoogle on the commandline, and processing results into a form useful for completion or insertion.

Synopsis

Documentation

caseSensitize :: [YiString] -> [YiString] Source #

Remove anything starting with uppercase letter. These denote either module names or types.

gv :: [YiString] -> [YiString] Source #

Hoogle's output includes a sort of type keyword, telling whether a hit is a package name, syntax, a module name, etc. But we care primarily about the function names, so we filter out anything containing the keywords.

hoogleRaw :: YiString -> YiString -> IO [YiString] Source #

Query Hoogle, with given search and options. This errors out on no results or if the hoogle command is not on path.

hoogleFunctions :: YiString -> IO [YiString] Source #

Filter the output of hoogleRaw to leave just functions.

hoogleFunModule :: YiString -> IO [(YiString, YiString)] Source #

Return module-function pairs.

hoogle :: YiM YiString Source #

Call out to hoogleFunModule, and overwrite the word at point with the first returned function.

hoogleSearch :: YiM () Source #

Call out to hoogleRaw, and print inside the Minibuffer the results of searching Hoogle with the word at point.