Hoogle Search

Within LTS Haskell 24.50 (ghc-9.10.3)

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

  1. module Data.EnumSet

    No documentation available.

  2. data EnumSet k

    enummapset Data.EnumSet

    Wrapper for IntSet with Enum elements.

  3. enumSetToIntSet :: EnumSet k -> IntSet

    enummapset Data.EnumSet

    Unwrap IntSet.

  4. intSetToEnumSet :: IntSet -> EnumSet k

    enummapset Data.EnumSet

    Wrap IntSet.

  5. tagToEnum# :: Int# -> a

    ghc-internal GHC.Internal.Base

    No documentation available.

  6. getNumCapabilities :: IO Int

    ghc-internal GHC.Internal.Conc.Sync

    Returns the number of Haskell threads that can run truly simultaneously (on separate physical processors) at any given time. To change this value, use setNumCapabilities.

  7. getNumProcessors :: IO Int

    ghc-internal GHC.Internal.Conc.Sync

    Returns the number of CPUs that the machine has

  8. setNumCapabilities :: Int -> IO ()

    ghc-internal GHC.Internal.Conc.Sync

    Set the number of Haskell threads that can run truly simultaneously (on separate physical processors) at any given time. The number passed to forkOn is interpreted modulo this value. The initial value is given by the +RTS -N runtime flag. This is also the number of threads that will participate in parallel garbage collection. It is strongly recommended that the number of capabilities is not set larger than the number of physical processor cores, and it may often be beneficial to leave one or more cores free to avoid contention with other processes in the machine.

  9. module GHC.Internal.Data.Enum

    The Enum and Bounded classes.

  10. class Enum a

    ghc-internal GHC.Internal.Data.Enum

    Class Enum defines operations on sequentially ordered types. The enumFrom... methods are used in Haskell's translation of arithmetic sequences. Instances of Enum may be derived for any enumeration type (types whose constructors have no fields). The nullary constructors are assumed to be numbered left-to-right by fromEnum from 0 through n-1. See Chapter 10 of the Haskell Report for more details. For any type that is an instance of class Bounded as well as Enum, the following should hold:

    enumFrom     x   = enumFromTo     x maxBound
    enumFromThen x y = enumFromThenTo x y bound
    where
    bound | fromEnum y >= fromEnum x = maxBound
    | otherwise                = minBound
    

Page 243 of many | Previous | Next