criterion-1.1.0.0: Robust, reliable performance measurement and analysis

Copyright | (c) 2009-2014 Bryan O'Sullivan
License | BSD-style
Maintainer | bos@serpentine.com
Stability | experimental
Portability | GHC
Safe Haskell | None
Language | Haskell98

Criterion.IO

Description

Input and output actions.

Synopsis

- header :: ByteString
- hGetReports :: Handle -> IO (Either String [Report])
- hPutReports :: Handle -> [Report] -> IO ()
- readReports :: FilePath -> IO (Either String [Report])
- writeReports :: FilePath -> [Report] -> IO ()

# Documentation

header :: ByteString Source

The header identifies a criterion data file. This contains version information; there is no expectation of cross-version compatibility.

hGetReports :: Handle -> IO (Either String [Report]) Source

Read all reports from the given `Handle`.

hPutReports :: Handle -> [Report] -> IO () Source

Write reports to the given `Handle`.

readReports :: FilePath -> IO (Either String [Report]) Source

Read all reports from the given file.

writeReports :: FilePath -> [Report] -> IO () Source

Write reports to the given file.