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.
constructObjectPropertyEnum :: (Enum a, BoxedEnum a) => String -> a -> IO (GValueConstruct o)haskell-gi-base Data.GI.Base.Properties No documentation available.
getObjectPropertyEnum :: (GObject a, Enum b, BoxedEnum b) => a -> String -> IO bhaskell-gi-base Data.GI.Base.Properties No documentation available.
setObjectPropertyEnum :: (GObject a, Enum b, BoxedEnum b) => a -> String -> b -> IO ()haskell-gi-base Data.GI.Base.Properties No documentation available.
-
haskell-gi-base Data.GI.Base.ShortPrelude Class Enum defines operations on sequentially ordered types. The enumFrom... methods are used in Haskell's translation of arithmetic sequences. Instances of Enum may be derived for any enumeration type (types whose constructors have no fields). The nullary constructors are assumed to be numbered left-to-right by fromEnum from 0 through n-1. See Chapter 10 of the Haskell Report for more details. For any type that is an instance of class Bounded as well as Enum, the following should hold:
- The calls succ maxBound and pred minBound should result in a runtime error.
- fromEnum and toEnum should give a runtime error if the result value is not representable in the result type. For example, toEnum 7 :: Bool is an error.
- enumFrom and enumFromThen should be defined with an implicit bound, thus:
enumFrom x = enumFromTo x maxBound enumFromThen x y = enumFromThenTo x y bound where bound | fromEnum y >= fromEnum x = maxBound | otherwise = minBound
fromEnum :: Enum a => a -> Inthaskell-gi-base Data.GI.Base.ShortPrelude Convert to an Int. It is implementation-dependent what fromEnum returns when applied to a value that is too large to fit in an Int.
-
haskell-gi-base Data.GI.Base.ShortPrelude Convert from an Int.
-
Diff Data.Algorithm.DiffContext No documentation available.
unNumberContextDiff :: ContextDiff (Numbered a) -> ContextDiff aDiff Data.Algorithm.DiffContext If for some reason you need the line numbers stripped from the result of getContextDiff for backwards compatibility.
-
Diff Data.Algorithm.DiffContext No documentation available.
lrNumbers :: LineRange -> (LineNo, LineNo)Diff Data.Algorithm.DiffOutput No documentation available.