haskell / haskell/cabal

Improve observability of recompilation checking

Open
#12,118 0 comments 3 reactions 0 assignees View on GitHub
attention: pr-welcome cabal-install: cmd/build recompilation type: enhancement type: performance
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

There should be a way to get verbose information about recompilation checking, to make it easier to figure out what is causing unnecessary recompilation.

Two ideas:

- Some `Verbosity`-related mechanism that allows one to quickly get a dump of ALL the information related to recompilation checking, not interleaved with anything else.
- Provide a way to report exactly what changed when a monitored value changes (e.g. as a small diff). This would require reworking the `FileMonitor` machinery a little bit so that we can provide diffs when values change.

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests; start by locating the recompilation-checking entry points and the FileMonitor machinery. Compare the proposed Verbosity-related dump with reporting diffs when monitored values change, then define which approach is accepted and how its output should be verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.