Re: [Haskell-cafe] Problem on using template haskell.

2011-10-02 Thread Magicloud Magiclouds
On Mon, Oct 3, 2011 at 1:44 PM, Magicloud Magiclouds wrote: > Hi, >  I am trying to use data-flags library. And failed on compiling the test code. > >  The code is like following, and the compiling error is > "test.hs:4:24: parse error on input `{'" > {-# LANGUAGE TemplateHaskell #-} > import Data

[Haskell-cafe] Problem on using template haskell.

2011-10-02 Thread Magicloud Magiclouds
Hi, I am trying to use data-flags library. And failed on compiling the test code. The code is like following, and the compiling error is "test.hs:4:24: parse error on input `{'" {-# LANGUAGE TemplateHaskell #-} import Data.Flags.TH $(bitmaskWrapper "Severity" ''Int [] False [ ("NotClassified