On Mon, Mar 23, 2009 at 10:21 PM, <steffen.sier...@gmail.com> wrote: > Mon Mar 23 22:05:51 CET 2009 steffen.sier...@gmail.com > * added experimental support for adding custom modules in ~/.yi/ for use in > yi.hs > > This patch allows placing further private modules in ~/.yi/ to be used > by yi.hs and recompile configuration everytime one Source-file was touched. > > This patch is kind of controversial since: > - removed "-i" flag from ghc --make to find all modules
I think putting the current directory in the search path is definitely not acceptable: it's hard enough to tell which version of the code is running. If it depends on `pwd` it's going to be even worse. It would be ok to add a fixed path to the search path tough. > - ghc --make is run on every startup, since ghc --make > tests for file changes obeying module dependencies How slow/fast is this? > But following invariants (ensured by ghc --make) still hold when new > binary is to be created: > > 'recompile params force' recompiles ~\/.Project\/Project.hs when any of > the > following apply: > * force is True > * the Project executable does not exist > * the Project executable is older than Project.hs or any *.hs > files Project.hs depends on > * the Project executable is older than the libraries from which it > was built That seems fine. Cheers, JP. --~--~---------~--~----~------------~-------~--~----~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel -~----------~----~----~----~------~----~------~--~---