Hi, Krasimir, thanks for that. I added a cabalBuildE, as you said, it was easy enough :) I'm coming across a strange problem: if I build yi from a clean state, i.e. runhaskell Setup.hs clean runhaskell Setup.hs configure runhaskell Setup.hs build
then the commands in Keymap/Emacs/Util.hs are picked up; however, if I make a change and just do the build, none of them are available. I expect it has something to do with HackerMain, but I'm not sure -- anybody seen this? Anyway, the build works, but it will probably fail if the current directory is changed; also, cmdErr doesn't get copied to the output buffer, and the output in any case needs to be written incrementally. So I shall have a look into that. cheers, Fraser. On Wed, Apr 16, 2008 at 3:17 PM, Krasimir Angelov <[EMAIL PROTECTED]> wrote: > > On Wed, Apr 16, 2008 at 11:24 AM, Fraser Wilson <[EMAIL PROTECTED]> > wrote: > > If I understand Cabal (and I don't), this would be straightforward -- > along > > the lines of calling (cd $PROJECTDIR ; runhaskell Setup.hs configure ; > > runhaskell Setup.hs build), where the configure step is skipped if the > > project file hasn't changed (or run anyway; it's quick). I'll have a > look > > tonight. > > Currently when you load a project in Yi it is always configured first. > This is not > intentional the function that checks whether the project have to be > configured is > in cabal but it isn't much suitable to be used in a library mode. This > have to be fixed > and I am tempted to swich Yi to use the development version of Cabal > is this doesn't > cause other problems. > > Executing "Setup.hs build" and "Setup.hs install" isn't more difficult > than "Setup.hs configure" that > we already do. Just someone have to do it :-). > > Regards, > Krasimir > > > > --~--~---------~--~----~------------~-------~--~----~ Yi development mailing list [email protected] http://groups.google.com/group/yi-devel -~----------~----~----~----~------~----~------~--~---
