An easy way to add external files to Haskell source
Nobody has claimed this yet.
- Dominant language
- Nix
- Stars
- 240
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
Sometimes, cabal's data-files must come from outside the Git repo, such as from a flake input. To achieve this, normally we:
ln -sfthat file or directory in devShell'sshellHook, and:- add it to
projectRootsocabal2nixis aware of it.
In action: https://github.com/juspay/vira/pull/17
Can we make this simpler to configure in haskell-flake? If not, at least document this as a workflow.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the shellHook and projectRoot configuration described in the issue, then compare how cabal's data-files and cabal2nix handle external paths. Use PR #17 as the concrete example; done means a simpler haskell-flake configuration, or documentation of this workflow if no implementation is feasible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100