Copyright | (c) 2009-2014 Bryan O'Sullivan |
---|---|
License | BSD-style |
Maintainer | bos@serpentine.com |
Stability | experimental |
Portability | GHC |
Safe Haskell | Safe |
Language | Haskell98 |
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
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]) Source
Read all records from the given Handle
.
readRecords :: Binary a => FilePath -> IO (Either String [a]) Source
Read all records from the given file.
writeRecords :: Binary a => FilePath -> [a] -> IO () Source
Write records to the given file.