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

Safe HaskellSafe-Inferred

Penny.Lincoln.Bits.Open

Description

These are the bits that are open; that is, their constructors are exported. This includes most bits. Some bits that have open constructors are not in this module because they include other bits that do not have exported constructors.

Synopsis

Documentation

data DrCr Source

Constructors

Debit 
Credit 

opposite :: DrCr -> DrCrSource

Debit returns Credit; Credit returns Debit

newtype Flag Source

Constructors

Flag 

Fields

unFlag :: Text
 

newtype Memo Source

There is one item in the list for each line of the memo. Do not include newlines in the texts themselves. However there is nothing to enforce this convention.

Constructors

Memo 

Fields

unMemo :: [Text]
 

newtype Number Source

Constructors

Number 

Fields

unNumber :: Text
 

newtype Payee Source

Constructors

Payee 

Fields

unPayee :: Text
 

newtype Tag Source

Constructors

Tag 

Fields

unTag :: Text
 

newtype Tags Source

Constructors

Tags 

Fields

unTags :: [Tag]
 

Instances

Eq Tags 
Ord Tags 
Show Tags 
Generic Tags 
Binary Tags 
Equivalent Tags

Tags are equivalent if they have the same tags (even if in a different order).

HasTextList Tags 

newtype TopLineLine Source

The line number that the TopLine starts on (excluding the memo accompanying the TopLine).

Constructors

TopLineLine 

Fields

unTopLineLine :: Int
 

newtype TopMemoLine Source

The line number that the memo accompanying the TopLine starts on.

Constructors

TopMemoLine 

Fields

unTopMemoLine :: Int
 

data Side Source

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).

data SpaceBetween Source

There may or may not be a space in between the commodity and the quantity.

newtype Filename Source

The name of the file in which a transaction appears.

Constructors

Filename 

Fields

unFilename :: Text
 

newtype PriceLine Source

The line number on which a price appears.

Constructors

PriceLine 

Fields

unPriceLine :: Int
 

newtype PostingLine Source

The line number on which a posting appears.

Constructors

PostingLine 

Fields

unPostingLine :: Int
 

newtype GlobalPosting Source

All postings are numbered in order, beginning with the first posting in the first file and ending with the last posting in the last file.

Constructors

GlobalPosting 

newtype FilePosting Source

The postings in each file are numbered in order.

Constructors

FilePosting 

newtype GlobalTransaction Source

All transactions are numbered in order, beginning with the first transaction in the first file and ending with the last transaction in the last file.

newtype FileTransaction Source

The transactions in each file are numbered in order.

Constructors

FileTransaction