[Haskell-cafe] Building examples with Cabal

Gauthier Segay gauthier.segay at gmail.com
Fri Oct 18 10:53:05 UTC 2013


I think the parallel build requirement was a concern in the initial
mail, if it is a single executable I assume it's going to be trickier.

On Fri, Oct 18, 2013 at 11:28 AM, Ozgur Akgun <ozgurakgun at gmail.com> wrote:
> Hi.
>
>
> On 18 October 2013 08:07, Sven Panne <svenpanne at gmail.com> wrote:
>
>> The only missing part is some way to build tons of
>> executables in parallel without writing a .cabal file of roughly the
>> same size as "The Lord of the Rings" or a typical Stephen King
>> novel...
>
>
> If you have so many tests, why wouldn't you generate a single executable
> which takes the name of the test as an argument and runs that test?
>
> Something like the following, with additional error checking and etc.
>
> data Test = Foo | Bar | ...
> runTest :: Test -> IO ()
> main = do
>   (t:_) <- getArgs
>   runTest (read t)
>
> This is a pretty simple idea, just wanted to know why you don't go down this
> path instead.
>
> HTH,
> Ozgur
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>


More information about the Haskell-Cafe mailing list