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

Safe HaskellSafe-Infered

Penny.Copper.Payees

Contents

Description

Payee parsers. There are two types of payee parsers:

Quoted payees. These allow the most latitude in the characters allowed. They are surrounded by @ and @.

Unquoted payees. These are not surrounded by @ and @. Their first character must be a letter or number.

Synopsis

Parse any payee

Quoted payees

Unquoted payees

Rendering

smartRender :: Payee -> Maybe TextSource

Render a payee with a minimum of quoting. Fails if cannot be rendered at all.

quoteRender :: Payee -> Maybe TextSource

Renders with quotes, whether the payee needs it or not.