| Copyright | (c) 2009-2014 Bryan O'Sullivan |
|---|---|
| License | BSD-style |
| Maintainer | bos@serpentine.com |
| Stability | experimental |
| Portability | GHC |
| Safe Haskell | Safe |
| Language | Haskell98 |
Criterion.IO
Description
Input and output actions.
- header :: ByteString
- hGetRecords :: Binary a => Handle -> IO (Either String [a])
- hPutRecords :: Binary a => Handle -> [a] -> IO ()
- readRecords :: Binary a => FilePath -> IO (Either String [a])
- writeRecords :: Binary a => FilePath -> [a] -> IO ()
Documentation
header :: ByteString #
The header identifies a criterion data file. This contains version information; there is no expectation of cross-version compatibility.
hGetRecords :: Binary a => Handle -> IO (Either String [a]) #
Read all records from the given Handle.
readRecords :: Binary a => FilePath -> IO (Either String [a]) #
Read all records from the given file.
writeRecords :: Binary a => FilePath -> [a] -> IO () #
Write records to the given file.