LambdaHack-0.2.1: A roguelike game engine in early and very active development

Safe HaskellSafe-Infered



Saving/loading with serialization and compression.



encodeEOF :: Binary a => FilePath -> a -> IO ()Source

Serialize, compress and save data with an EOF marker. The OK is used as an EOF marker to ensure any apparent problems with corrupted files are reported to the user ASAP.

strictDecodeEOF :: Binary a => FilePath -> IO aSource

Read, decompress and deserialize data with an EOF marker. The OK EOF marker ensures any easily detectable file corruption is discovered and reported before the function returns.