[Haskell-cafe] Cabal and GHCi

Don Stewart dons at galois.com
Mon Oct 27 23:23:49 EDT 2008

>    Hi,
>    Is there a way to use GHCi with code which is cabal-buildable but not "ghc
>    --make"-able?  The emacs haskell-mode makes a pretty good guess by :cd-ing
>    into the directory with the .cabal file; however, if there is a different
>    source-dir this doesn't work so well. A number of more advanced cabal
>    features are even harder to handle.

Not currently. Duncan's interested in implementing this, so if you add a
tacket for a 'cabal ghci' mode, that loads up the main-is target in
ghci, with all the appropriate flags, he might well implement it :-)

-- Don

More information about the Haskell-Cafe mailing list