Haskell – Multiple Haskell cabal-packages in one directory

cabalhaskell

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?

Best Answer

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.

Related Topic