Skip to content
Peter A. Jonsson edited this page May 3, 2014 · 4 revisions

No need for a lot of frills for cabal editing in the beginning given that the cabal file is edited once in a blue moon. Cabal is the standard way of building Haskell projects though so solid support for that is necessary. Additionally I (@pjonsson) have a non-standard complex setup and it would be swell if that could be supported.

Requirements

  1. Building of one IntelliJ project corresponding to one Haskell project (with single cabal file) should work out of the box.
  2. Building of one IntelliJ project that contains several Haskell projects that depend on each other should be possible.

Solutions

Cabal 1.18 which provides sandboxes. The second use case can be solved by making a sandbox in the directory that nobody else is depending on and cabal sandbox add-source on the other modules there.

Good introduction here: http://coldwa.st/e/blog/2013-08-20-Cabal-sandbox.html

Better Solutions

Cabal 1.20 seems to be even better, especially for performance. Parallel builds without any cost (improves performance somewhat), avoiding repeated linking and you can just cabal build for stuff in the sandbox.

Announcement with useful information: http://blog.johantibell.com/2014/04/announcing-cabal-120.html

Clone this wiki locally