[Haskell-cafe] Flags

2006-08-10 Thread Maduser
I have started to program in Haskell. Now I want programm something like flags. It's a set of flags. It sould be possible to convert the Flag as Int/String (the bit combination). I have written this: import Data.Set as Set type Flags = Set Flag data Flag = Flag1 | Flag2 | Flag3

Re: [Haskell-cafe] Flags

2006-08-10 Thread Donald Bruce Stewart
Maduser: I have started to program in Haskell. Now I want programm something like flags. It's a set of flags. It sould be possible to convert the Flag as Int/String (the bit combination). I have written this: import Data.Set as Set type Flags = Set Flag data Flag = Flag1 | Flag2 |

Re: [Haskell-cafe] Flags

2006-08-10 Thread Maduser
Donald Bruce Stewart wrote: Perhaps? Yes, Thank you. -- View this message in context: http://www.nabble.com/Flags-tf2083897.html#a5742181 Sent from the Haskell - Haskell-Cafe forum at Nabble.com. ___ Haskell-Cafe mailing list