;cli: update example in Cli.Main haddock
This commit is contained in:
parent
d60c1f764d
commit
13e3e7607e
@ -19,7 +19,7 @@ You can use the command line:
|
|||||||
or ghci:
|
or ghci:
|
||||||
|
|
||||||
> $ ghci hledger
|
> $ ghci hledger
|
||||||
> > j <- readJournalFile def "examples/sample.journal"
|
> > Right j <- readJournalFile definputopts "examples/sample.journal"
|
||||||
> > register [] ["income","expenses"] j
|
> > register [] ["income","expenses"] j
|
||||||
> 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
|
||||||
@ -30,9 +30,9 @@ or ghci:
|
|||||||
> $2 expenses
|
> $2 expenses
|
||||||
> $-2 income
|
> $-2 income
|
||||||
> $1 liabilities
|
> $1 liabilities
|
||||||
> > l <- myLedger
|
> > j <- defaultJournal
|
||||||
|
|
||||||
See "Hledger.Data.Ledger" for more examples.
|
etc.
|
||||||
|
|
||||||
-}
|
-}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user