Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,245
    • Issues 5,245
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 563
    • Merge requests 563
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #20417
Closed
Open
Issue created Sep 25, 2021 by Marcin Szamotulski@coot

Plugins and recompilation of modules

I discovered that when a plugin is enabled, ghc will rebuild all modules even if only the top level module changed.

I created a minimal example to reproduce this issue, see the repo.

If I compile both modules: A and B, then I modify the top level one (B) and then recompiles again what GHC will do depends whether the plugin is enabled or not. In the first case it only recompiles the modified module, in the other case it will recompile both modules. I checked that for the defaultPlugin with pluginRecompile set to either of the two: purePlugin and flagRecompile.

This might be a regression since the tickets #7414 (closed) and #12567 (closed) are both closed.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking