Provides functions for calling Hoogle on the commandline, and processing results into a form useful for completion or insertion.
Remove anything starting with uppercase letter. These denote either module names or types.
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.
Query Hoogle, with given search and options. This errors out on no results or if the hoogle command is not on path.
Filter the output of
hoogleRaw to leave just functions.
Call out to
hoogleFunModule, and overwrite the word at point with
the first returned function.