Re: Template Haskell in cabal-install

2009-12-21 Thread Brent Yorgey
On Mon, Dec 21, 2009 at 02:49:10PM +, Duncan Coutts wrote: > On Mon, 2009-12-21 at 07:30 +0100, Mikhail Glushenkov wrote: > > Hi, > > > > Would it be worthwile to reimplement > > Distribution/Client/Init/Licenses.hs using a TH macro that parses and > > loads license files at compile time? IIUC

Re: Template Haskell in cabal-install

2009-12-21 Thread Duncan Coutts
On Mon, 2009-12-21 at 07:30 +0100, Mikhail Glushenkov wrote: > Hi, > > Would it be worthwile to reimplement > Distribution/Client/Init/Licenses.hs using a TH macro that parses and > loads license files at compile time? IIUC, currently one has to use a > Perl script to add new licenses. We cannot

Template Haskell in cabal-install

2009-12-20 Thread Mikhail Glushenkov
Hi, Would it be worthwile to reimplement Distribution/Client/Init/Licenses.hs using a TH macro that parses and loads license files at compile time? IIUC, currently one has to use a Perl script to add new licenses. Pros: easier to add new licenses Cons: dependency on TH -- () ascii ribbon ca