Template Haskell in cabal-install

Duncan Coutts duncan.coutts at googlemail.com
Mon Dec 21 09:49:10 EST 2009


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 have cabal-install use TH, because that language extension is
GHC-only.

I suggest we change it so that the license files are external data
files. Then we just use string substitution.

Duncan



More information about the cabal-devel mailing list