mikmod-0.2.0.1: MikMod bindings

Safe HaskellSafe
LanguageHaskell2010

Sound.MikMod.Flags

Synopsis

Documentation

class Flag a where Source #

Class to handle the bit flags. It's Enum with UWORD (CUShort) instead of Int and without irrelevant functionality.

Minimal complete definition

toFlag, fromFlag

Methods

toFlag :: a -> UWORD Source #

fromFlag :: UWORD -> a Source #

unpackFlags :: Flag a => UWORD -> [a] Source #

packFlags :: Flag a => [a] -> UWORD Source #