Hoogle Search

Within LTS Haskell 22.21 (ghc-9.6.5)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. badSafeIndex :: Int -> Int -> Int

    base GHC.Arr

    Used to throw exceptions in array bounds-checking functions. ⚠ This function throws SomeException in all cases.

    Examples

    >>> badSafeIndex 2 5
    *** Exception: Error in array index; 2 not in range [0..5)
    

  2. quotInt :: Int -> Int -> Int

    base GHC.Base

    Used to implement quot for the Integral typeclass. This performs integer division on its two parameters, truncated towards zero.

    Example

    >>> quotInt 10 2
    5
    
    >>> quot 10 2
    5
    

  3. remInt :: Int -> Int -> Int

    base GHC.Base

    Used to implement rem for the Integral typeclass. This gives the remainder after integer division of its two parameters, satisfying

    ((x `quot` y) * y) + (x `rem` y) == x
    

    Example

    >>> remInt 3 2
    1
    
    >>> rem 3 2
    1
    

  4. divInt :: Int -> Int -> Int

    base GHC.Base

    Used to implement div for the Integral typeclass. This performs integer division on its two parameters, truncated towards negative infinity.

    Example

    >>> 10 `divInt` 2
    5
    
    >>> 10 `div` 2
    5
    

  5. modInt :: Int -> Int -> Int

    base GHC.Base

    Used to implement mod for the Integral typeclass. This performs the modulo operation, satisfying

    ((x `div` y) * y) + (x `mod` y) == x
    

    Example

    >>> 7 `modInt` 3
    1
    
    >>> 7 `mod` 3
    1
    

  6. clamp :: Int -> Int -> Int

    base GHC.Float

    Used to prevent exponent over/underflow when encoding floating point numbers. This is also the same as

    \(x,y) -> max (-x) (min x y)
    

    Example

    >>> clamp (-10) 5
    10
    

  7. mul :: Int -> Int -> Int

    text Data.Text.Internal

    Checked multiplication. Calls error if the result would overflow.

  8. delayed_min :: Int -> Int -> Int

    vector Data.Vector.Fusion.Util

    min inlined in phase 0

  9. mkArityTag :: Int -> Int -> Int

    ghc GHC.StgToJS.CoreUtils

    No documentation available.

  10. gcdInt :: Int -> Int -> Int

    ghc-bignum GHC.Num.BigNat

    Greatest common divisor between two Int Warning: result may become negative if (at least) one argument is minBound

Page 1 of many | Next