On Fri, Aug 7, 2009 at 5:39 PM, Jeff Wheeler<jeffwhee...@gmail.com> wrote:
>
> 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).

I think this part is still in there.

> 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?

It seems the best thing to do given Dyre.

Maybe I should say (for the sake of sharing knowledge) that HConf used
to provide
two "main": one for the "driver" (static) and one for the "slave"
(dynamic). The configuration
file used the slave main. Only the driver took care of re-compilation.
Therefore there was no need for extra code in Yi.

Cheers,
JP.

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

Reply via email to