glib: add toFlags': like toFlags but works doesn't fail when we haven't defined toEnum for a bit This is needed for a few reasons, the most important of which is for forward compatibility. If a newer version of the upstream package defines a new flag for a flag type, we shouldn't fail just because we don't recognize it. This version allows overlapping flags, for example, given:
glib: add toFlags': like toFlags but works doesn't fail when we haven't defined toEnum for a bit
This is needed for a few reasons, the most important of which is for forward compatibility.
If a newer version of the upstream package defines a new flag for a flag type, we shouldn't
fail just because we don't recognize it. This version allows overlapping flags, for example, given:

data OpenFlags = Read | Write | ReadWrite
instance Flags OpenFlags
instance Enum OpenFlags where ...

If ReadWrite is equivalent to [ Read, Write ] in C land, then it will be in Haskell land as well.



gtk2hs/webkit,gtk2hs/webkit,gtk2hs/vte,gtk2hs/webkit,gtk2hs/gstreamer,gtk2hs/vte