srid / srid/haskell-flake

An easy way to add external files to Haskell source

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

Nobody has claimed this yet.

documentation
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:

  1. ln -sf that file or directory in devShell's shellHook, and:
  2. add it to projectRoot so cabal2nix is 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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.