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
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 |
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