ndmitchell / ndmitchell/hoogle

Ignore parameter order

Open
#259 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Say I have a query like this:

Int -> String -> Boolean

Is there some way to inform Hoogle that it's okay to return functions like:

foo :: Int -> String -> Boolean
bar :: String -> Int -> Boolean

Or is the recommendation to manually permute parameter order when querying Hoogle. This can get cumbersome for functions with 3+ arity. If this doesn't exist, I could see this being a powerful feature.

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 by reviewing Hoogle's current query-matching behavior and the existing discussion on parameter order. Define how reordered arguments should be matched, including functions with three or more parameters, and verify that the search results include both the original and reordered forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.