haskell / haskell/cabal

Issue with switching from generated files back to normal files.

Open
#6,054 0 comments 0 reactions 0 assignees View on GitHub
Cabal: cmd/build type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

If you rename a module from `Foo.hsc` to `Foo.hs`, cabal will keep recompiling the previously generated `Foo.hs` rather than take the one in your source directory. It seems the only way I have to get out of this bad state is to nuke `dist-newstyle` and try again.

It seems that our goal of a 'stateless' cache isn't quite being achieved here. I presume this happens with other preprocessors.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.