ndmitchell / ndmitchell/hoogle

Is it possible to search by partial signature?

Open
#413 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Haskell
Stars
803
Forks
152
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the searching section of README.md and the query examples described in the issue. Trace how Hoogle handles type-signature terms, then define and verify behavior for partial signatures or wildcards; done means a query for Button can find signatures containing it in any argument position, with the supported syntax documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.