The header identifies a criterion data file. This contains version information; there is no expectation of cross-version compatibility.
Modulecriterion-1.6.4.0Haskell2010
Criterion.IO
Input and output actions.
- 1 type
- 9 values
- Packagecriterion-1.6.4.0
- Exports10
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceIO.hs
The magic string we expect to start off the header.
The current version of criterion, encoded into a string that is used in files.
Read all records from the given Handle.
Write records to the given Handle.
Read all records from the given file.
Write records to the given file.
On disk we store (name,version,reports), where
version is the version of Criterion used to generate the file.
Alternative file IO with JSON instances. Read a list of reports from a .json file produced by criterion.
If the version does not match exactly, this issues a warning.
Write a list of reports to a JSON file. Includes a header, which includes the current Criterion version number. This should be the inverse of readJSONReports.