Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- encodeFlag :: (Foldable f, Bounded e, Enum e) => f e -> Flag
- decodeFlag :: Enum e => Flag -> [e]
- showFlag :: Flag -> String
- showFlagFit :: (Bounded e, Enum e) => e -> Flag -> String
- showFlagBy :: Int -> Flag -> String
- readFlag :: String -> Flag
- readFlagSub :: Bits a => [Char] -> a -> a
- readEnum :: Enum e => String -> [e]
- include :: Flag -> Flag -> Bool
- exclude :: Flag -> Flag -> Bool
- about :: (Flag -> Flag -> b) -> Flag -> Flag -> Flag -> b
- eqAbout :: Flag -> Flag -> Flag -> Bool
- includeAbout :: Flag -> Flag -> Flag -> Bool
- excludeAbout :: Flag -> Flag -> Flag -> Bool
- anyReq :: Flag -> Flag -> Bool
- allReq :: Flag -> Flag -> Bool
- module Data.Flag.Internal
Documentation
readFlagSub :: Bits a => [Char] -> a -> a Source #
anyReq :: Flag -> Flag -> Bool Source #
Check any positive bit of req matches corresponding bit of obj
When req is zerobits
, this returns True
allReq :: Flag -> Flag -> Bool Source #
Check every positive bit of req matches corresponding bit of obj
module Data.Flag.Internal