Open lf- opened 2 years ago
Hoogle seems to support OpenSearch discovery, for integrating as a browser search engine. The docs for that are here: https://developer.mozilla.org/en-US/docs/Web/OpenSearch#autodiscovery_of_search_plugins
However, in Hoogle's description file here: https://github.com/ndmitchell/hoogle/blob/master/html/search.xml it's specified that Hoogle should be invoked with mode=suggest via this URL: https://hoogle.haskell.org/?hoogle={searchTerms}&mode=suggest
https://hoogle.haskell.org/?hoogle={searchTerms}&mode=suggest
(an independent bug is that this doesn't vary based on the server URL so this doesn't correctly work on localhost hoogle)
However, this mode doesn't exist in the source code:
https://github.com/ndmitchell/hoogle/blob/62a2a8a5827183b1846d31dc9cd61b3fd05ff19e/src/Action/Server.hs#L102-L123
Thus, suggestions don't work. I might go add that mode, since it is likely not that tricky.
Hoogle seems to support OpenSearch discovery, for integrating as a browser search engine. The docs for that are here: https://developer.mozilla.org/en-US/docs/Web/OpenSearch#autodiscovery_of_search_plugins
However, in Hoogle's description file here: https://github.com/ndmitchell/hoogle/blob/master/html/search.xml it's specified that Hoogle should be invoked with mode=suggest via this URL:
https://hoogle.haskell.org/?hoogle={searchTerms}&mode=suggest
(an independent bug is that this doesn't vary based on the server URL so this doesn't correctly work on localhost hoogle)
However, this mode doesn't exist in the source code:
https://github.com/ndmitchell/hoogle/blob/62a2a8a5827183b1846d31dc9cd61b3fd05ff19e/src/Action/Server.hs#L102-L123
Thus, suggestions don't work. I might go add that mode, since it is likely not that tricky.