On Tue, Feb 19, 2013 at 10:11 AM, Branimir Maksimovic <bmaxa@hotmail.com> wrote:
In C usual way is to set some bit in integer variable by shifting or oring,
and than check flag integer variable by anding with particular flag value.
What is Haskell way?
You can do that, but a somewhat more idiomatic way would be a list (or, slightly less conveniently but more accurately, a Data.Set) of constructors from a flags ADT.