
3 Oct
2011
3 Oct
'11
1:55 a.m.
Hi, I am learning to use data-flags, and got this example code: import Data.Flags newtype MyFlags = MyFlags CInt deriving (Eq, Flags) #{enum MyFlags, MyFlags , myFlag1 = C_FLAG1 , myFlag2 = C_FLAG2 , myFlag3 = C_FLAG3 } I modified it trying to compile it. Well, I got illegal syntax at "#{e". In fact, I am not quite know the syntax here. Any clue? -- 竹密岂妨流水过 山高哪阻野云飞