Extension for Visual Studio Code to search Hoogle, the Haskell search engine.
Available for download in the marketplace.
NOTE: Due to differences between Hoogle V4 and Hoogle V5, including package names in your query seems to be unnecessary.
- If you change your
hoogle-vscode.url
to point to a V5 server, I think you can ignore thehoogle-vscode.useCabalDependencies
,hoogle-vscode.additionalPackages
, andhoogle-vscode.includeDefaultPackages
settings. - If you are pointing to a V4 server, those settings are probably a bit more relevant. See the Recommended Settings section.
- Press
shift
+alt
+h
, or open theCommand Palette
and selectHoogle Search
, then type your query to get results. - Select some text, press
shift
+alt
+h
, or open theCommand Palette
and selectHoogle Search
, and get results based off of the selected text. - Selecting a result in the dropdown will bring you to Hackage to see the found result in more detail.
- Can be configured to use a local Hoogle server.
- Can be configured to read from (and watch) a .cabal file in your workspace to use those packages in all queries.
- Supports manually adding additional packages to the search query as part of workspace/user settings. []
This extension contributes the following settings:
hoogle-vscode.maxResults
: Default is5
. Maximum number of Hoogle results to display.hoogle-vscode.verbose
: Default isfalse
. Enable verbose logging to the console (for debugging).hoogle-vscode.url
: Default ishttp://www.haskell.org/hoogle/
. Change the url of Hoogle. This can point to a local Hoogle server.hoogle-vscode.useCabalDependencies
: Default isfalse
. If set totrue
, the extension will read a .cabal file in your workspace to get the list of dependencies. That list of dependencies will be used to constraint your search queries. This will also start watching your .cabal file for changes. NOTE: this requiresstack
to be installed and available on your PATH.hoogle-vscode.additionalPackages
: Default is[]
. You can add a list of packages here that will always be used to constrain the search query.hoogle-vscode.includeDefaultPackages
: Default istrue
. When true, this will include the Hoogle default packages in your query. That way, if you sethoogle-vscode.additionalPackages
totrue
, your query will search all of those packages. When set tofalse
, the extension won't include those packages in your query.
- If you are okay with having Hoogle search its default set of packages, but you always want to include a few more in the query, specify those packages in
hoogle-vscode.additionalPackages
and leavehoogle-vscode.includeDefaultPackages
at the default setting. - If you are working on a
stack
project, you can sethoogle-vscode.useCabalDependencies
to true and turn offhoogle-vscode.includeDefaultPackages
so that Hoogle will search only in the packages you are using in your project.hoogle-vscode.additionalPackages
can be specified if you want to search other packages not in your .cabal file.
Soon to come...