Hoogle Search
Within LTS Haskell 24.31 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
linearBounded :: (Bounded a, Integral a) => Range ahedgehog Hedgehog.Internal.Range Construct a range which is scaled relative to the size parameter and uses the full range of a data type.
>>> bounds 0 (linearBounded :: Range Int8) (0,0)
>>> bounds 50 (linearBounded :: Range Int8) (-64,64)
>>> bounds 99 (linearBounded :: Range Int8) (-128,127)
constantBounded :: (Bounded a, Num a) => Range ahedgehog Hedgehog.Range Construct a range which is unaffected by the size parameter using the full range of a data type. A range from -128 to 127, with the origin at 0:
>>> bounds x (constantBounded :: Range Int8) (-128,127)
>>> origin (constantBounded :: Range Int8) 0
exponentialBounded :: (Bounded a, Integral a) => Range ahedgehog Hedgehog.Range Construct a range which is scaled exponentially relative to the size parameter and uses the full range of a data type.
>>> bounds 0 (exponentialBounded :: Range Int8) (0,0)
>>> bounds 50 (exponentialBounded :: Range Int8) (-11,11)
>>> bounds 99 (exponentialBounded :: Range Int8) (-128,127)
linearBounded :: (Bounded a, Integral a) => Range ahedgehog Hedgehog.Range Construct a range which is scaled relative to the size parameter and uses the full range of a data type.
>>> bounds 0 (linearBounded :: Range Int8) (0,0)
>>> bounds 50 (linearBounded :: Range Int8) (-64,64)
>>> bounds 99 (linearBounded :: Range Int8) (-128,127)
-
prettyprinter Prettyprinter Layouters should not introduce line breaks on their own.
-
prettyprinter Prettyprinter.Internal Layouters should not introduce line breaks on their own.
writePrimBounded :: BoundedPrim a -> a -> Writeblaze-builder Blaze.ByteString.Builder.Compat.Write No documentation available.
maximumBounded :: (Ord a, Bounded a) => [a] -> asafe Safe The largest element of a list. The result is bounded by minBound.
minimumBounded :: (Ord a, Bounded a) => [a] -> asafe Safe The largest element of a list. The result is bounded by maxBound.
maximumBounded :: (Foldable f, Ord a, Bounded a) => f a -> asafe Safe.Foldable The largest element of a foldable structure. The result is bounded by minBound.