ndmitchell / hoogle

Haskell API search engine
http://hoogle.haskell.org/
Other
731 stars 131 forks source link

Is it possible to search by partial signature? #413

Open tankorsmash opened 9 months ago

tankorsmash commented 9 months ago

I've been enjoying Hoogle a lot, it makes it a lot easier to get acclimated to a new codebase, and it works so quickly too. I've got a common enough issue though, say I'm looking through a library I'm not familiar with and I know I want to use specific type in a function, but I don't know which position in the argument list it is, is there a way to do that?

For example in discord-haskell, I want to learn more about Button. I can search '+discord-haskell ActionRow' (coloring by aft), which'll return something that includes [Button] in its signature

image

but '+discord-haskell Button' doesn't list that same function:

image

Is there a way to use wildcards maybe? I looked through the manual and it doesn't seem possible, but it would be nifty to do for sure!

I was effectively hoping to do something like +discord-haskell *Button* or +discord-haskell -> Button to be able to search through function signatures.

Thanks for making Hoogle!