hbro-1.0.0.0: Minimal KISS compliant browser

Safe HaskellNone

Hbro.Util

Synopsis

Documentation

io :: MonadIO m => IO a -> m aSource

Alias for liftIO

fork :: (MonadIO m, MonadBaseControl IO m) => m () -> m (MVar ())Source

Like forkIO using MVar as thread control

(>/>) :: MonadIO m => IO FilePath -> FilePath -> m FilePathSource

Like </> with first argument in IO to build platform-dependent paths.

logNormal :: MonadIO m => String -> m ()Source

logVerbose :: MonadIO m => String -> m ()Source

spawn :: MonadIO m => String -> [String] -> m ()Source

Run external command and won't kill when parent process exit.

getAllProcessIDs :: MonadIO m => m [ProcessID]Source

Return the list of process IDs corresponding to all running instances of the browser.

labelSetMarkupTemporary :: Label -> String -> Int -> IO ()Source

Set a temporary markup text to a label that disappears after some delay.

notify :: (Functor m, MonadIO m, MonadReader r m, HasNotificationBar r, HasHooks r, MonadError HError m) => Int -> String -> m ()Source

stringify :: Modifier -> StringSource

Convert a Modifier to a String.