Hoogle Search
Within LTS Haskell 24.36 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
documentGetCurrentPageNumber :: (HasCallStack, MonadIO m, IsDocument a) => a -> m Int32gi-atk GI.Atk.Interfaces.Document Retrieves the current page number inside document. Since: 2.12
constructDeviceNumTouches :: (IsDevice o, MonadIO m) => Word32 -> m (GValueConstruct o)gi-gdk3 GI.Gdk.Objects.Device Construct a GValueConstruct with valid value for the “num-touches” property. This is rarely needed directly, but it is used by new.
getDeviceNumTouches :: (MonadIO m, IsDevice o) => o -> m Word32gi-gdk3 GI.Gdk.Objects.Device Get the value of the “num-touches” property. When overloading is enabled, this is equivalent to
get device #numTouches
-
massiv-test Test.Massiv.Array.Numeric No documentation available.
-
massiv-test Test.Massiv.Array.Numeric No documentation available.
arbitraryBoundedEnum :: (Bounded a, Enum a) => Gen amassiv-test Test.Massiv.Utils Generates an element of a bounded enumeration.
chooseEnum :: Enum a => (a, a) -> Gen amassiv-test Test.Massiv.Utils A fast implementation of choose for enumerated types.
coarbitraryEnum :: Enum a => a -> Gen b -> Gen bmassiv-test Test.Massiv.Utils A coarbitrary implementation for enums.
shrinkBoundedEnum :: (Bounded a, Enum a, Eq a) => a -> [a]massiv-test Test.Massiv.Utils Shrink an element of a bounded enumeration.
Example
data MyEnum = E0 | E1 | E2 | E3 | E4 | E5 | E6 | E7 | E8 | E9 deriving (Bounded, Enum, Eq, Ord, Show)
>>> shrinkBoundedEnum E9 [E0,E5,E7,E8]
>>> shrinkBoundedEnum E5 [E0,E3,E4]
>>> shrinkBoundedEnum E0 []
fromEnum :: Enum a => a -> Intprelude-compat Prelude2010 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.