Ticket #734 (new enhancement)

Opened 3 years ago

Last modified 18 months ago

support multiple .cabal files

Reported by: guest Owned by:
Priority: normal Milestone:
Component: Cabal library Version:
Severity: normal Keywords:
Cc: Difficulty: very hard (<1 week)
GHC Version: Platform:

Description

if there are several *.cabal files in the working directory, then "cabal configure" complains, and does nothing. That's OK, but it should then have an option for picking one of these files (cf. "make -f FILE").

Change History

Changed 20 months ago by rrnewton

+1

As far as I can see there's no reason not to provide a command line switch for this.

I was just considering introducing a .cabal file for each benchmark in a directory. Having to place them all into their own directories makes this refactoring significantly more daunting.

Changed 20 months ago by duncan

  • difficulty changed from unknown to very hard (<1 week)
  • component changed from cabal-install tool to Cabal library

Unfortunately this is harder than it looks. The underlying Cabal build system interface does not allow for multiple .cabal files in a directory. Also, they would all need to share the same Setup.hs.

The simple approach would be to tell the build system which .cabal file to look at. Another would be to allow the single build system to see all the .cabal files and build all the components. Either approach will require an update to the Cabal build system interface spec.

Note: See TracTickets for help on using tickets.