
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. Cheers, Reiner

reiner.pope:
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

On Tue, Oct 28, 2008 at 2:23 PM, Don Stewart
reiner.pope:
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
Done: http://hackage.haskell.org/trac/hackage/ticket/382 :-) Reiner
participants (2)
-
Don Stewart
-
Reiner Pope