On Fri, Aug 7, 2009 at 4:36 AM, Jean-Philippe
Bernardy<jeanphilippe.berna...@gmail.com> wrote:

> Is there any way to disable recompilation and use the code in the static 
> binary?
> (ie. the former -fhacking functionality?)

I've been trying to think through the best way to implement -fhacking
in relation to Dyre.

I would use the -fhacking flag in yi.cabal to set the main-is field to
HackerMain.hs, and also avoid compiling the library when the flag is
set (which should make development faster by halving compilation
time). Yi.Boot.yi should not launch Dyre when -fhacking is set (it
shouldn't even be a dependency), but instead just be `startEditor
Nothing'.

When HackerMain.hs uses this `yi' imported from Yi.Boot, it'll skip
over Dyre entirely, so no reconfiguration will ever occur.

Is this a good solution?

Jeff Wheeler

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
yi-devel@googlegroups.com
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to