Skip to content

cabal init should not use same hs-source-dirs when choosing "Library and Executable" #6150

Closed
@phadej

Description

@phadej

This is bad practice as if an exe component depends on a lib component, GHC will recompile the modules, and not use the compiled library: double compilation of same modules.


An alternative is to implement a "don't compile modules we didn't told you to" to GHC, but I think this small step is still a good engineering practice, even cabal could tell (future) GHC to be less smart.


See #6143 (comment)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions