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

Safe HaskellSafe-Infered

Penny.Copper

Contents

Description

Copper - the Penny parser

Synopsis

Comments

data Comment Source

Constructors

Comment Text 

Instances

Radix and grouping

periodComma :: RadGroupSource

Radix is period, grouping is comma

periodSpace :: RadGroupSource

Radix is period, grouping is space

commaPeriod :: RadGroupSource

Radix is comma, grouping is period

commaSpace :: RadGroupSource

Radix is comma, grouping is space

data GroupingSpec Source

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.

Default time zone

FileContents

Errors

newtype ErrorMsg Source

Constructors

ErrorMsg 

Fields

unErrorMsg :: Text
 

Instances

Items

data Item Source

An Item is used both to hold the result of parsing an item from a file and for rendering. It is parameterized on two types: the metadata type for the TopLine, and the metadata type for the Posting.

Instances

data Line Source

Instances

Parsing

data Ledger Source

Constructors

Ledger 

Fields

unLedger :: [(Line, Item)]
 

Instances

Rendering