--enable-library-for-ghci and --split-sections interact badly
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
The combination of `--enable-library-for-ghci` and `--split-sections` means it takes a long time to load packages into a GHC API session. For more analysis and a potential solution see the gitlab issue.
https://gitlab.haskell.org/ghc/ghc/issues/15524#note_193376
This affected NixOS in particular.
https://github.com/NixOS/nixpkgs/pull/59297
Contributor guide
Research direction
Start by reading the linked GHC GitLab issue for the analysis of how `--enable-library-for-ghci` and `--split-sections` interact, then compare the related NixOS pull request. Trace the affected package-loading path for GHC API sessions and define completion as avoiding the reported long load time without breaking either option.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100