Hoogle Search
Within LTS Haskell 24.67 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setDialogFocus :: Eq n => n -> Dialog a n -> Dialog a nbrick Brick.Widgets.Dialog Set the focused button of a dialog.
setFileBrowserEntryFilter :: Maybe (FileInfo -> Bool) -> FileBrowser n -> FileBrowser nbrick Brick.Widgets.FileBrowser Set the filtering function used to determine which entries in the browser's current directory appear in the browser. Nothing indicates no filtering, meaning all entries will be shown. Just indicates a function that should return True for entries that should be permitted to appear. Note that this applies the filter after setting it by updating the listed entries to reflect the result of the filter. That is unlike setting the filter with the fileBrowserEntryFilterL lens directly, which just sets the filter but does not (and cannot) update the listed entries.
setWorkingDirectory :: FilePath -> FileBrowser n -> IO (FileBrowser n)brick Brick.Widgets.FileBrowser Set the working directory of the file browser. This scans the new directory and repopulates the browser while maintaining any active search string and/or entry filtering. If the directory scan raises an IOException, the exception is stored in the browser and is accessible with fileBrowserException. If no exception is raised, the exception field is cleared. Regardless of whether an exception is raised, .. is always presented as a valid option in the browser.
setColAlignment :: ColumnAlignment -> Int -> Table n -> Table nbrick Brick.Widgets.Table Set the alignment for the specified column index (starting at zero). Silently does nothing if the index is out of range.
setDefaultColAlignment :: ColumnAlignment -> Table n -> Table nbrick Brick.Widgets.Table Set the default column alignment for columns with no explicitly configured alignment.
setDefaultRowAlignment :: RowAlignment -> Table n -> Table nbrick Brick.Widgets.Table Set the default row alignment for rows with no explicitly configured alignment.
setRowAlignment :: RowAlignment -> Int -> Table n -> Table nbrick Brick.Widgets.Table Set the alignment for the specified row index (starting at zero). Silently does nothing if the index is out of range.
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.
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 -- ...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 -- ...