Hoogle Search
Within LTS Haskell 24.46 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
regex-tdfa Data.IntSet.EnumSet2 No documentation available.
EnumSet :: IntSet -> EnumSet eregex-tdfa Data.IntSet.EnumSet2 No documentation available.
unEnumSet :: EnumSet e -> IntSetregex-tdfa Data.IntSet.EnumSet2 No documentation available.
flagNumericVersion :: (a -> a) -> Flag acmdargs System.Console.CmdArgs.Explicit Create a version flag triggered by --numeric-version.
enum :: Data val => [val] -> valcmdargs System.Console.CmdArgs.Implicit Flag: "I want several different flags to set this one field to different values." This annotation takes a type which is an enumeration, and provides multiple separate flags to set the field to each value. The first element in the list is used as the value of the field.
data State = On | Off deriving Data data Mode = Mode {state :: State} cmdArgs $ Mode {state = enum [On &= help "Turn on",Off &= help "Turn off"]} --on Turn on --off Turn offThis annotation can be used to allow multiple flags within a field:data Mode = Mode {state :: [State]} cmdArgs $ Mode {state = enum [[] &= ignore, [On] &= help "Turn on", [Off] &= help "Turn off"]}Now --on --off would produce Mode [On,Off].enum_ :: (Data c, Data f) => (c -> f) -> [Annotate Ann] -> Annotate Anncmdargs System.Console.CmdArgs.Implicit Like enum, but using the pure annotations.
-
cmdargs System.Console.CmdArgs.Quote Version of enum without a Data context, only to be used within cmdArgsQuote.
class TypedObject a =>
BoxedEnum ahaskell-gi-base Data.GI.Base.BasicTypes Enums with an associated GType.
get_enum :: Ptr GValue -> IO CUInthaskell-gi-base Data.GI.Base.GValue No documentation available.
set_enum :: Ptr GValue -> CUInt -> IO ()haskell-gi-base Data.GI.Base.GValue No documentation available.