more haddock cleanups

This commit is contained in:
Simon Michael 2009-04-04 22:38:36 +00:00
parent 1ef777a1b8
commit 4c9f0e5d9e
4 changed files with 30 additions and 13 deletions

View File

@ -3,9 +3,11 @@
A compound data type for efficiency. An 'Account' stores A compound data type for efficiency. An 'Account' stores
- an 'AccountName', - an 'AccountName',
- all `Transaction`s (postings plus ledger transaction info) in the
- all 'Transaction's (postings plus ledger transaction info) in the
account, excluding subaccounts account, excluding subaccounts
- and the account balance, including subaccounts.
- a 'MixedAmount' representing the account balance, including subaccounts.
-} -}

View File

@ -24,13 +24,26 @@ timelogdefaultpath = "~/.timelog"
ledgerenvvar = "LEDGER" ledgerenvvar = "LEDGER"
timelogenvvar = "TIMELOG" timelogenvvar = "TIMELOG"
-- | A set of arguments specifying how to filter a ledger file. -- | A tuple of arguments specifying how to filter a raw ledger file:
type IOArgs = (DateSpan -- only in this date span --
,Maybe Bool -- only cleared/uncleared/don't care -- - only include transactions in this date span
,Bool -- only real/don't care --
,Bool -- convert amounts to cost basis -- - only include if cleared/uncleared/don't care
,[String] -- account patterns --
,[String] -- description patterns -- - only include if real/don't care
--
-- - convert all amounts to cost basis
--
-- - only include if matching these account patterns
--
-- - only include if matching these description patterns
type IOArgs = (DateSpan
,Maybe Bool
,Bool
,Bool
,[String]
,[String]
) )
noioargs = (DateSpan Nothing Nothing, Nothing, False, False, [], []) noioargs = (DateSpan Nothing Nothing, Nothing, False, False, [], [])

View File

@ -5,8 +5,11 @@ from a 'RawLedger' so that it is easy to query. It typically has had
uninteresting 'LedgerTransaction's and 'Posting's removed. It contains uninteresting 'LedgerTransaction's and 'Posting's removed. It contains
- the original 'RawLedger' - the original 'RawLedger'
- a tree of account names
- a tree of 'AccountName's
- a map from account names to 'Account's - a map from account names to 'Account's
- the full text of the journal file, when available - the full text of the journal file, when available
-} -}

View File

@ -9,7 +9,7 @@ Released under GPL version 3 or later.
hledger is a partial haskell clone of John Wiegley's "ledger" text-based hledger is a partial haskell clone of John Wiegley's "ledger" text-based
accounting tool. It generates ledger-compatible register & balance accounting tool. It generates ledger-compatible register & balance
reports from a plain text journal, and demonstrates a functional reports from a plain text journal, and demonstrates a functional
implementation of ledger. For more information, see ledger.org . implementation of ledger. For more information, see http:\/\/hledger.org .
You can use the command line: You can use the command line:
@ -19,8 +19,6 @@ or ghci:
> $ ghci hledger > $ ghci hledger
> > l <- readLedger "sample.ledger" > > l <- readLedger "sample.ledger"
> > length $ ledgerTransactions l
> 11
> > register [] ["income","expenses"] l > > register [] ["income","expenses"] l
> 2008/01/01 income income:salary $-1 $-1 > 2008/01/01 income income:salary $-1 $-1
> 2008/06/01 gift income:gifts $-1 $-2 > 2008/06/01 gift income:gifts $-1 $-2
@ -34,6 +32,7 @@ or ghci:
> > l <- myLedger > > l <- myLedger
> > t <- myTimelog > > t <- myTimelog
See "Ledger.Ledger" for more examples.
-} -}
module Main ( module Main (