[Haskell-cafe] Organizing big repository
alex-haskell at copton.net
Tue Nov 1 09:02:50 CET 2011
On Thu, Oct 27, 2011 at 08:02:58PM +0300, Konstantin Litvinenko wrote:
> Having program 'foo' depends on lib 'bar' I want to edit some files
> in 'bar' than build 'foo' and get 'bar' rebuilt and 'foo'
> How can I do this?
I use cabal-dev  along with the react tool . The former does the
dependencies-configure-build-install and the latter is a command-line
wrapper around inotify.
With this combo you can rebuild your project whenever any Haskell source
react -p "*.hs" src/ "cabal-dev install"
For my workflow, I have an additional wrapper script for cabal-dev that
generates a quickfix file for Vim . Then the workflow goes like:
safe file -> wait for build to complete (OSD/libnotify) -> press F5 to
jump to the location of the first compiler error or warning.
Together with NERDTree  this is almost like an IDE ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the Haskell-Cafe