[Haskell-cafe] hflags
Claude Heiland-Allen
claude at mathr.co.uk
Fri Feb 6 09:28:43 UTC 2015
On 06/02/15 06:26, Maurizio Vitale wrote:
> with ghc 7.8.4 and hflags 0.4 the following program:
>
> {-# LANGUAGE TemplateHaskell #-}
>
> module Main where
>
> import HFlags
>
> defineFlag "f" True "A flag."
> --defineFlag "g" True "Another flag."
return []
-- see
http://hackage.haskell.org/package/QuickCheck-2.7.6/docs/Test-QuickCheck-All.html#v:quickCheckAll
- I haven't tested with hflags but it looks like the same issue from
first glance
>
> main = do
> _ <- $initHFlags "flags demo"
> print Main.flags_f
>
> gives me a runtime error about the flag f not being found, unless I add the
> declaration of a second flag. It seems like the last flag definition is not
> seen.
>
> Any idea/suggestion?
>
> Thanks,
>
> Maurizio
Claude
--
http://mathr.co.uk
More information about the Haskell-Cafe
mailing list