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.

  1. fromIntegerBounded :: (MonadThrow m, Integral a, Bounded a) => Integer -> m a

    safe-decimal Numeric.Decimal.BoundedArithmetic

    Convert from an unbounded Integer to a Bounded Integral, while checking for bounds and raising Overflow/Underflow

  2. minusBounded :: (MonadThrow m, Ord a, Num a, Bounded a) => a -> a -> m a

    safe-decimal Numeric.Decimal.BoundedArithmetic

    Subtract two bounded numbers while checking for Overflow/Underflow

  3. plusBounded :: (MonadThrow m, Ord a, Num a, Bounded a) => a -> a -> m a

    safe-decimal Numeric.Decimal.BoundedArithmetic

    Add two bounded numbers while checking for Overflow/Underflow

  4. quotBounded :: (MonadThrow m, Integral a, Bounded a) => a -> a -> m a

    safe-decimal Numeric.Decimal.BoundedArithmetic

    Find quotient of two numbers while checking for Overflow and DivideByZero

  5. 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

  6. timesBounded :: (MonadThrow m, Integral a, Bounded a) => a -> a -> m a

    safe-decimal Numeric.Decimal.BoundedArithmetic

    Multiply two numbers while checking for Overflow

  7. postProcessBounded :: forall m (t :: (Type -> Type) -> Type -> Type) a . MonadAsync m => SVar t m a -> m Bool

    streamly Streamly.Internal.Data.SVar

    No documentation available.

  8. readOutputQBounded :: forall m (t :: (Type -> Type) -> Type -> Type) a . MonadAsync m => SVar t m a -> m [ChildEvent a]

    streamly Streamly.Internal.Data.SVar

    No documentation available.

  9. enumerateFromBounded :: forall t (m :: Type -> Type) a . (IsStream t, Monad m, Enumerable a, Bounded a) => a -> t m a

    streamly Streamly.Internal.Data.Stream.IsStream

    enumerateFromBounded = enumerateFromTo from maxBound
    
    enumerateFrom for Bounded Enum types.

  10. enumerateFromThenSmallBounded :: forall t (m :: Type -> Type) a . (IsStream t, Monad m, Enumerable a, Bounded a) => a -> a -> t m a

    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.

Page 46 of many | Previous | Next