Re: [Haskell-cafe] Cabal Test-suites + custom preprocessors

2012-08-26 Thread Johan Tibell
On Sun, Aug 26, 2012 at 1:03 PM, Iain Nicol wrote: > Johan Tibell wrote: >> On Sun, Aug 26, 2012 at 12:40 PM, Iain Nicol wrote: >>> Does anybody know if Cabal actually supports using custom >>> preprocessors for building a test-suite? If so, is 'buildHook' still >>> the right hook to override? >

Re: [Haskell-cafe] Cabal Test-suites + custom preprocessors

2012-08-26 Thread Iain Nicol
Johan Tibell wrote: > On Sun, Aug 26, 2012 at 12:40 PM, Iain Nicol wrote: >> Does anybody know if Cabal actually supports using custom >> preprocessors for building a test-suite? If so, is 'buildHook' still >> the right hook to override? > > Try overriding the test hook. Bleh; that's too obvious

Re: [Haskell-cafe] Cabal Test-suites + custom preprocessors

2012-08-26 Thread Johan Tibell
On Sun, Aug 26, 2012 at 12:40 PM, Iain Nicol wrote: > Hi café, > > I am successfully using a custom preprocessor to build my main > executable. In particular, I am using UUAGC to preprocess .ag files > into .hs files. My Setup.hs file uses 'uuagcLibUserHook' from the > package uuagc-cabal to do

[Haskell-cafe] Cabal Test-suites + custom preprocessors

2012-08-26 Thread Iain Nicol
Hi café, I am successfully using a custom preprocessor to build my main executable. In particular, I am using UUAGC to preprocess .ag files into .hs files. My Setup.hs file uses 'uuagcLibUserHook' from the package uuagc-cabal to do this, which in particular overrides Cabal's 'buildHook' for me.