Hoogle Search
Within LTS Haskell 24.67 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
ixNumSpec :: (Typeable ix, Num ix, Index ix, Arbitrary ix) => Specmassiv-test Test.Massiv.Core.Index Spec that validates the Num instance for any `Index ix => ix`
szNumSpec :: (Typeable ix, Num ix, Index ix, Arbitrary ix) => Specmassiv-test Test.Massiv.Core.Index Spec that validates the Num instance for any `Index ix => Sz ix`
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 []
-
microlens-aeson Lens.Micro.Aeson Traverse into various number types.
_Number :: AsNumber t => Traversal' t Scientificmicrolens-aeson Lens.Micro.Aeson >>> "[1, \"x\"]" ^? nth 0 . _Number Just 1.0
>>> "[1, \"x\"]" ^? nth 1 . _Number Nothing
-
mongoDB Database.MongoDB.Admin An operation indentifier.
PortNumber :: PortNumber -> PortIDmongoDB Database.MongoDB.Connection No documentation available.