penny-lib- Extensible double-entry accounting system - library

Safe HaskellNone






:: AllowNew

Is a new file allowed?

-> DbLocation

DB location

-> IO (Exceptional String DbList) 

Loads the database from disk. If allowNew is True, then does not fail if the file was not found.

version :: IntSource

File version. Increment this when anything in the file format changes.

saveDb :: DbLocation -> DbList -> IO ()Source

Writes a new database to disk.

parseQty :: Amount -> QtySource

Parses quantities from amounts. All amounts should be verified as having only digits, optionally followed by a point and then more digits. All these values should parse. So if there is a problem it is a programmer error. Apply error.

showPosting :: Posting -> StringSource

Shows a Posting in human readable format.