ndmitchell / ndmitchell/hoogle

Support building databases for Cabal projects

Open
#472 1 comment 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

I couldn't figure out how to use Hoogle to generate a database for my Cabal-managed project, so I did it my own way.

Here is a patch that adds GHC_ENVIRONMENT support to Hoogle. This lets me create a Hoogle database for a project using cabal exec -- hoogle generate --local.

Like https://github.com/ndmitchell/hoogle/issues/471, I don't really endorse the code as-written, just the end result.

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 reading the linked blog post and the existing Hoogle generate --local flow, then inspect how Cabal projects are invoked through cabal exec. Use the GHC_ENVIRONMENT documentation and the referenced patch as comparison points. Done means Hoogle can generate a local database for a Cabal-managed project with cabal exec -- hoogle generate --local.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
build-system, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.