On Tue, Feb 19, 2013 at 10:11 AM, Branimir Maksimovic <bm...@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. -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe