Safe Haskell | None |
---|
- errExit :: String -> IO a
- getFitAcct :: Maybe FitAcct -> IO FitAcct
- loadDb :: AllowNew -> DbLocation -> IO DbList
- version :: Int
- brenner :: String
- readDbTuple :: ByteString -> Exceptional String DbList
- saveDbTuple :: DbList -> ByteString
- saveDb :: DbLocation -> DbList -> IO ()
- parseQty :: Amount -> Qty
- label :: String -> Text -> String
- showPosting :: Posting -> String
- showDbPair :: (UNumber, Posting) -> String
Documentation
getFitAcct :: Maybe FitAcct -> IO FitAcctSource
Gets the FitAcct, if it was provided. If it was not provided, exit with an error message.
:: AllowNew | Is a new file allowed? |
-> DbLocation | DB location |
-> IO DbList |
Loads the database from disk. If allowNew is True, then does not fail if the file was not found.
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.
showDbPair :: (UNumber, Posting) -> StringSource