Hoogle Search

Within LTS Haskell 24.46 (ghc-9.10.3)

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

  1. setNumCapabilities :: Int -> IO ()

    context Context.Concurrent

    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.

  2. setDefault :: MonadIO m => Store ctx -> ctx -> m ()

    context Context.Internal

    Set the default context value for a store. If the store was initialized as an empty store, this function converts it to a non-empty store. If the store was initialized as a non-empty store, this overwrites the default context value. One common use case for this function is to convert an empty store in a global variable to a non-empty store while the application is initializing/acquiring resources:

    depsStore :: Store Dependencies
    depsStore = unsafePerformIO $ Context.newStore Context.defaultPropagation Nothing
    {-# NOINLINE depsStore #-}
    
    main :: IO ()
    main = do
    let config = -- ...
    withDependencies config \deps -> do
    Context.setDefault depsStore deps
    -- ...
    

  3. setDefault :: MonadIO m => Store ctx -> ctx -> m ()

    context Context.Storage

    Set the default context value for a store. If the store was initialized as an empty store, this function converts it to a non-empty store. If the store was initialized as a non-empty store, this overwrites the default context value. One common use case for this function is to convert an empty store in a global variable to a non-empty store while the application is initializing/acquiring resources:

    depsStore :: Store Dependencies
    depsStore = unsafePerformIO $ Context.newStore Context.defaultPropagation Nothing
    {-# NOINLINE depsStore #-}
    
    main :: IO ()
    main = do
    let config = -- ...
    withDependencies config \deps -> do
    Context.setDefault depsStore deps
    -- ...
    

  4. setBitIndices :: FiniteBits a => a -> Unfoldr Int

    deferred-folds DeferredFolds.Unfoldr

    Indices of set bits.

  5. setSeed :: Reproducible a => a -> SeedOpt -> a

    elynx-tools ELynx.Tools.Reproduction

    No documentation available.

  6. setBackendSpecificForeignKeyName :: (EntityNameDB -> FieldNameDB -> ConstraintNameDB) -> BackendSpecificOverrides -> BackendSpecificOverrides

    esqueleto Database.Esqueleto

    Set the backend's foreign key generation function to this value.

  7. setEntityDBName :: EntityNameDB -> EntityDef -> EntityDef

    esqueleto Database.Esqueleto

    No documentation available.

  8. setEntityId :: FieldDef -> EntityDef -> EntityDef

    esqueleto Database.Esqueleto

    Set an entityId to be the given FieldDef.

  9. setEntityIdDef :: EntityIdDef -> EntityDef -> EntityDef

    esqueleto Database.Esqueleto

    No documentation available.

  10. setFieldAttrs :: [FieldAttr] -> FieldDef -> FieldDef

    esqueleto Database.Esqueleto

    Replace the FieldDef FieldAttr with the new list.

Page 368 of many | Previous | Next