Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
fromIntegerBounded :: (MonadThrow m, Integral a, Bounded a) => Integer -> m asafe-decimal Numeric.Decimal.BoundedArithmetic Convert from an unbounded Integer to a Bounded Integral, while checking for bounds and raising Overflow/Underflow
minusBounded :: (MonadThrow m, Ord a, Num a, Bounded a) => a -> a -> m asafe-decimal Numeric.Decimal.BoundedArithmetic Subtract two bounded numbers while checking for Overflow/Underflow
plusBounded :: (MonadThrow m, Ord a, Num a, Bounded a) => a -> a -> m asafe-decimal Numeric.Decimal.BoundedArithmetic Add two bounded numbers while checking for Overflow/Underflow
quotBounded :: (MonadThrow m, Integral a, Bounded a) => a -> a -> m asafe-decimal Numeric.Decimal.BoundedArithmetic Find quotient of two numbers while checking for Overflow and DivideByZero
quotRemBounded :: (MonadThrow m, Integral a, Bounded a) => a -> a -> m (a, a)safe-decimal Numeric.Decimal.BoundedArithmetic Find quotient an remainder of two numbers while checking for Overflow and DivideByZero
timesBounded :: (MonadThrow m, Integral a, Bounded a) => a -> a -> m asafe-decimal Numeric.Decimal.BoundedArithmetic Multiply two numbers while checking for Overflow
-
streamly Streamly.Internal.Data.SVar No documentation available.
-
streamly Streamly.Internal.Data.SVar No documentation available.
-
streamly Streamly.Internal.Data.Stream.IsStream enumerateFromBounded = enumerateFromTo from maxBound
enumerateFrom for Bounded Enum types. -
streamly Streamly.Internal.Data.Stream.IsStream enumerateFromThen for Enum types not larger than Int. Note: We convert the Enum to Int and enumerate the Int. If a type is bounded but does not have a Bounded instance then we can go on enumerating it beyond the legal values of the type, resulting in the failure of toEnum when converting back to Enum. Therefore we require a Bounded instance for this function to be safely used.