Portability | none portable |
---|---|
Stability | experimental |
Maintainer | Timo B. Huebel (tbh@holumbus.org) |
Safe Haskell | None |
Load and store indexes
- loadFromFile :: (XmlPickler a, Binary a) => FilePath -> IO a
- loadFromXmlFile :: XmlPickler a => FilePath -> IO a
- writeToXmlFile :: XmlPickler a => FilePath -> a -> IO ()
- loadFromBinFile :: Binary a => FilePath -> IO a
- writeToBinFile :: Binary a => FilePath -> a -> IO ()
Documentation
loadFromFile :: (XmlPickler a, Binary a) => FilePath -> IO aSource
Try to determine the file type automatically. The file is loaded as XML if the filename ends with ".xml" and otherwise is loaded as binary file.
loadFromXmlFile :: XmlPickler a => FilePath -> IO aSource
Load from XML file.
writeToXmlFile :: XmlPickler a => FilePath -> a -> IO ()Source
Write to XML file.
loadFromBinFile :: Binary a => FilePath -> IO aSource
Load from a binary file.