tags:

views:

94

answers:

3

What is the recommended way of having several cabal packages in one directory?

Why: I have an old project with many separable modules. Since originally they formed just one program it was, and still is, handy to have them in same directory for easy compiling.

Options

  1. Just suffer and split everything, including VCS holding the stuff, into different directories?
  2. Hack cabal until it is happy with multiple .cabal files in same directory?
  3. Make another subdirectory for each module and put .cabal files there along with symlinks to original pieces of code?
  4. Something smarter? What?
+1  A: 

I'd have to recommend option 1 or 3 for cleanliness. I'm not sure how to get around this, if there is even a way to get around this.

Rayne
A: 

I'd say a modified option of 1: subdirectories for everything, no symlinks, but keep everything under a single VCS.

This problem is on the issue list for Cabal 2.

Norman Ramsey
A: 

I would recommend that this is exactly what workspaces in Leksah were designed to do. Just get your hands on Leksah and then the rest will sort itself out.

Robert Massaioli