{-# LANGUAGE TemplateHaskell #-}
module Main where
import HFlags
defineFlag "f" True "A flag."
--defineFlag "g" True "Another flag."
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.