update ghci examples
This commit is contained in:
parent
8dcc90ff58
commit
d795c0bac8
20
hledger.hs
20
hledger.hs
@ -69,16 +69,16 @@ balance opts pats = do
|
|||||||
otherwise -> 9999
|
otherwise -> 9999
|
||||||
|
|
||||||
{-
|
{-
|
||||||
interactive testing:
|
interactive testing in ghci:
|
||||||
|
|
||||||
*Main> p <- ledgerFilePath [File "./test.dat"] >>= parseLedgerFile
|
p <- ledgerFilePath [File "./test.ledger"] >>= parseLedgerFile
|
||||||
*Main> let r = either (\_ -> LedgerFile [] [] []) id p
|
let r = either (\_ -> LedgerFile [] [] [] "") id p
|
||||||
*Main> let l = cacheLedger r
|
let l = cacheLedger (argpats [] []) r
|
||||||
*Main> let ant = accountnametree l
|
let ant = accountnametree l
|
||||||
*Main> let at = accounts l
|
let at = accounts l
|
||||||
*Main> putStr $ drawTree $ treemap show $ ant
|
putStr $ drawTree $ treemap show $ ant
|
||||||
*Main> putStr $ showLedgerAccounts l [] False 1
|
putStr $ showLedgerAccounts l 1
|
||||||
*Main> :m +Tests
|
:m +Tests
|
||||||
*Main Tests> l7
|
l7
|
||||||
|
|
||||||
-}
|
-}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user