more haddock cleanups
This commit is contained in:
parent
1ef777a1b8
commit
4c9f0e5d9e
@ -3,9 +3,11 @@
|
||||
A compound data type for efficiency. An 'Account' stores
|
||||
|
||||
- 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
|
||||
- and the account balance, including subaccounts.
|
||||
|
||||
- a 'MixedAmount' representing the account balance, including subaccounts.
|
||||
|
||||
-}
|
||||
|
||||
|
||||
27
Ledger/IO.hs
27
Ledger/IO.hs
@ -24,13 +24,26 @@ timelogdefaultpath = "~/.timelog"
|
||||
ledgerenvvar = "LEDGER"
|
||||
timelogenvvar = "TIMELOG"
|
||||
|
||||
-- | A set of arguments specifying how to filter a ledger file.
|
||||
type IOArgs = (DateSpan -- only in this date span
|
||||
,Maybe Bool -- only cleared/uncleared/don't care
|
||||
,Bool -- only real/don't care
|
||||
,Bool -- convert amounts to cost basis
|
||||
,[String] -- account patterns
|
||||
,[String] -- description patterns
|
||||
-- | A tuple of arguments specifying how to filter a raw ledger file:
|
||||
--
|
||||
-- - only include transactions in this date span
|
||||
--
|
||||
-- - only include if cleared/uncleared/don't care
|
||||
--
|
||||
-- - 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, [], [])
|
||||
|
||||
@ -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
|
||||
|
||||
- the original 'RawLedger'
|
||||
- a tree of account names
|
||||
|
||||
- a tree of 'AccountName's
|
||||
|
||||
- a map from account names to 'Account's
|
||||
|
||||
- the full text of the journal file, when available
|
||||
|
||||
-}
|
||||
|
||||
@ -9,7 +9,7 @@ Released under GPL version 3 or later.
|
||||
hledger is a partial haskell clone of John Wiegley's "ledger" text-based
|
||||
accounting tool. It generates ledger-compatible register & balance
|
||||
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:
|
||||
|
||||
@ -19,8 +19,6 @@ or ghci:
|
||||
|
||||
> $ ghci hledger
|
||||
> > l <- readLedger "sample.ledger"
|
||||
> > length $ ledgerTransactions l
|
||||
> 11
|
||||
> > register [] ["income","expenses"] l
|
||||
> 2008/01/01 income income:salary $-1 $-1
|
||||
> 2008/06/01 gift income:gifts $-1 $-2
|
||||
@ -34,6 +32,7 @@ or ghci:
|
||||
> > l <- myLedger
|
||||
> > t <- myTimelog
|
||||
|
||||
See "Ledger.Ledger" for more examples.
|
||||
-}
|
||||
|
||||
module Main (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user