Portability | unportable |
---|---|
Stability | unstable |
Maintainer | Juraj Hercek <juhe_haskell@hck.sk> |
Safe Haskell | None |
Plugins.Monitors.CoreCommon
Description
The common part for cpu core monitors (e.g. cpufreq, coretemp)
- checkedDataRetrieval :: (Ord a, Num a) => String -> [[String]] -> Maybe (String, String -> Int) -> (Double -> a) -> (a -> String) -> Monitor String
- retrieveData :: (Ord a, Num a) => [String] -> Maybe (String, String -> Int) -> (Double -> a) -> (a -> String) -> Monitor (Maybe String)
- data Comp
- data CompOrSep
- pathComponents :: [String] -> [Comp]
- findFilesAndLabel :: [String] -> Maybe (String, String -> Int) -> Monitor [(String, Either Int (String, String -> Int))]
- readFiles :: (String, Either Int (String, String -> Int)) -> Monitor (Int, String)
- ifthen :: a -> a -> Bool -> a
Documentation
checkedDataRetrieval :: (Ord a, Num a) => String -> [[String]] -> Maybe (String, String -> Int) -> (Double -> a) -> (a -> String) -> Monitor String
retrieveData :: (Ord a, Num a) => [String] -> Maybe (String, String -> Int) -> (Double -> a) -> (a -> String) -> Monitor (Maybe String)
data CompOrSep
Used to represent parts of file names separated by slashes and spaces
pathComponents :: [String] -> [Comp]
Function to turn a list of of strings into a list of path components
findFilesAndLabel :: [String] -> Maybe (String, String -> Int) -> Monitor [(String, Either Int (String, String -> Int))]
Function to find all files matching the given path and possible label file. The path must be absolute (start with a leading slash).
readFiles :: (String, Either Int (String, String -> Int)) -> Monitor (Int, String)
Function to read the contents of the given file(s)
ifthen :: a -> a -> Bool -> a
Function that captures if-then-else