avoid unnecessary recompilation for lib, exe, and tests
This travis log is an example of unnecessary recompilation. It built the modules for library and the same modules got recompiled for the ghc-events executable.
Warning: The following modules should be added to exposed-modules
or other-modules in /Users/maoe/src/github.com/haskell/ghc-events/ghc-events.cabal:
- In ghc-events component:
GHC.RTS.EventParserUtils
GHC.RTS.EventTypes
GHC.RTS.Events
GHC.RTS.Events.Analysis
GHC.RTS.Events.Analysis.Capability
GHC.RTS.Events.Analysis.SparkThread
GHC.RTS.Events.Analysis.Thread
GHC.RTS.Events.Merge
GHC.RTS.EventsIncremental- In test-versions component:
GHC.RTS.EventParserUtils
GHC.RTS.EventTypes
GHC.RTS.Events
GHC.RTS.EventsIncremental
Utils- In write-merge component:
GHC.RTS.EventParserUtils
GHC.RTS.EventTypes
GHC.RTS.Events
GHC.RTS.EventsIncremental
Utils
The motivation behind this change is to