On Tue, Mar 22, 2011 at 11:49 AM, Jeff Wheeler <wheel...@illinois.edu> wrote:
> On Tue, Mar 22, 2011 at 11:20 AM, Corey O'Connor <coreyocon...@gmail.com> 
> wrote:
>
>> Not sure which dependencies you are talking about. The base yi
>> packages dependencies?
>
> Yeah, I'd like yi to require one of the frontends somehow. The logical
> way to do that is to have the UI flags in yi.cabal which cause it to
> depend on one of the frontend packages (i.e. yi-vty, yi-pango, etc.),
> but then we get mutual dependencies, where yi-vty depends on yi, but
> we just depended on that within yi.
>
> It'd be nice if we could dynamically find out which are installed
> inside Yi.Config.Default, so that we don't need the flags to know
> which were compiled into yi. I have no idea if this is possible by
> depending on Cabal and some tricks.

I think the cabal UserHooks can be used to do interactively query if
the user wants to install one of the UI packages.

See postInst here:
http://hackage.haskell.org/packages/archive/Cabal/1.10.1.0/doc/html/Distribution-Simple-UserHooks.html

That is provided the yi package information and current build configuration.

> --
> Jeff Wheeler
>
> Undergraduate, Electrical Engineering
> University of Illinois at Urbana-Champaign
>
> --
> Yi development mailing list
> yi-devel@googlegroups.com
> http://groups.google.com/group/yi-devel

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

Reply via email to