Safe Haskell | None |
---|
Penny.Brenner
Description
Brenner - Penny financial institution interfaces
Brenner provides a uniform way to interact with downloaded data from financial Given a parser, Brenner will import the transactions and store them in a database. From there it is easy to merge the transactions (without duplicates) into a ledger file, and then to clear transactions from statements in an automated fashion.
- data FitAcct = FitAcct {
- fitAcctName :: String
- fitAcctDesc :: String
- dbLocation :: String
- pennyAcct :: String
- defaultAcct :: String
- currency :: String
- groupSpecs :: GroupSpecs
- translator :: Translator
- side :: Side
- spaceBetween :: SpaceBetween
- parser :: (ParserDesc, FitFileLocation -> IO (Exceptional String [Posting]))
- toLincolnPayee :: Desc -> Payee -> Payee
- data Config = Config {}
- data GroupSpecs = GroupSpecs {}
- data GroupSpec
- = NoGrouping
- | GroupLarge
- | GroupAll
- data Translator
- data Side
- data SpaceBetween
- usePayeeOrDesc :: Desc -> Payee -> Payee
- brennerMain :: Version -> Config -> IO ()
- ofxParser :: (ParserDesc, ParserFn)
Documentation
Information to configure a single financial institution account.
Constructors
FitAcct | |
Fields
|
Constructors
Config | |
Fields
|
Specifies how to perform digit grouping when rendering a quantity. All grouping groups into groups of 3 digits.
Constructors
NoGrouping | Do not perform any digit grouping |
GroupLarge | Group digits, but only if the number to be grouped is greater than 9,999 (if grouping the whole part) or if there are more than 4 decimal places (if grouping the fractional part). |
GroupAll | Group digits whenever there are at least four decimal places. |
data Translator Source
What the financial institution shows as an increase or decrease has to be recorded as a debit or credit in the PennyAcct.
Constructors
IncreaseIsDebit | That is, when the financial institution shows a posting that increases your account balance, you record a debit. You will probably use this for deposit accounts, like checking and savings. These are asset accounts so if the balance goes up you record a debit in your ledger. |
IncreaseIsCredit | That is, when the financial institution shows a posting that increases your account balance, you record a credit. You will probably use this for liabilities, such as credit cards and other loans. |
Instances
The commodity and and the quantity may appear with the commodity on the left (e.g. USD 2.14) or with the commodity on the right (e.g. 2.14 USD).
Constructors
CommodityOnLeft | |
CommodityOnRight |
data SpaceBetween Source
There may or may not be a space in between the commodity and the quantity.
Constructors
SpaceBetween | |
NoSpaceBetween |
usePayeeOrDesc :: Desc -> Payee -> PayeeSource
A simple function to use for toLincolnPayee
. Uses the financial
institution payee if it is available; otherwise, uses the financial
institution description.
Brenner, with a pre-compiled configuration.
ofxParser :: (ParserDesc, ParserFn)Source
Parser for OFX data.