Safe Haskell | None |
---|
Misc Small Helpers
- my_name :: String
- defaultTimeout :: Double
- main_threadid :: IORef ThreadId
- parseIntList :: String -> [Int]
- trim :: String -> String
- strBool :: String -> Bool
- fst3 :: (t, t1, t2) -> t
- snd3 :: (t, t1, t2) -> t1
- thd3 :: (t, t1, t2) -> t2
- isNumber :: String -> Bool
- indent :: [String] -> [String]
- runIgnoreErr :: String -> IO String
- echoStream :: Bool -> InputStream ByteString -> BenchM (MVar ())
- runLogged :: String -> String -> BenchM (RunResult, [ByteString])
- runLines :: String -> IO [String]
- runSL :: String -> IO String
- check :: Bool -> ExitCode -> String -> BenchM Bool
- forkIOH :: String -> IO () -> IO ThreadId
- getCPULoad :: IO (Maybe Double)
- fetchBaseName :: FilePath -> FilePath
Documentation
defaultTimeout :: DoubleSource
In seconds.
main_threadid :: IORef ThreadIdSource
Global variable holding the main thread id.
parseIntList :: String -> [Int]Source
runIgnoreErr :: String -> IO StringSource
echoStream :: Bool -> InputStream ByteString -> BenchM (MVar ())Source
Create a thread that echos the contents of stdout/stderr InputStreams (lines) to the appropriate places (as designated by the logging facility).
runLogged :: String -> String -> BenchM (RunResult, [ByteString])Source
Run a command and wait for all output. Log output to the appropriate places. The first argument is a tag to append to each output line to make things clearer.
runLines :: String -> IO [String]Source
Runs a command through the OS shell and returns stdout split into lines. (Ignore exit code and stderr.)
runSL :: String -> IO StringSource
Runs a command through the OS shell and returns the first line of output.
getCPULoad :: IO (Maybe Double)Source
fetchBaseName :: FilePath -> FilePathSource
A more persistent version of takeBaseName
.