Safe Haskell | Safe-Infered |
---|
Generic code to poll any of the many data files maintained by the kernel in POSIX systems. Provides methods for applying a custom parsing function to the contents of the file and to calculate differentials across one or more values provided via the file.
Documentation
getParsedInfo :: FilePath -> (String -> [(String, [Integer])]) -> String -> IO [Integer]Source
Apply the given parser function to the file under the given path to produce a lookup map, then use the given selector as key to extract from it the desired value.