This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ hledger | |
Commands available (41): | |
Standard reports: | |
accounts show chart of accounts | |
balancesheet (bs) show a balance sheet | |
balancesheetequity (bse) show a balance sheet with equity | |
cashflow (cf) show a cashflow statement | |
incomestatement (is) show an income statement |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cabal install ./hledger-api --dry | |
Resolving dependencies... | |
cabal: Could not resolve dependencies: | |
trying: ansi-terminal-0.7 (dependency of wai-extra-3.0.20.0) | |
trying: optparse-applicative-0.14.0.0 (dependency of wai-app-static-3.1.6.1) | |
next goal: ansi-wl-pprint (dependency of optparse-applicative-0.14.0.0) | |
rejecting: ansi-wl-pprint-0.6.8.1, ansi-wl-pprint-0.6.8, | |
ansi-wl-pprint-0.6.7.3, ansi-wl-pprint-0.6.7.2, ansi-wl-pprint-0.6.7.1, | |
ansi-wl-pprint-0.6.7, ansi-wl-pprint-0.6.6 (conflict: ansi-terminal==0.7, | |
ansi-wl-pprint => ansi-terminal>=0.4.0 && <0.7) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env stack | |
{- stack runghc --verbosity info | |
--package hledger-lib | |
--package hledger | |
--package here | |
--package megaparsec | |
--package text | |
--package Diff | |
-} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:tests/csv/csv-read.test:1: [Failed] | |
Expected stdout: | |
2009/09/10 Flubber Co | |
income:unknown $-50 | |
assets:myacct $50 | |
Got stdout: | |
2009/09/10 Flubber Co |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2017/8/8 () client1 | receive payment | |
; Externally, this is just a cheque deposit. In my accounts, all of the following happens: | |
; | |
; decrease client receivable. Unbalanced because using cash basis accounting which does not track invoices. | |
(assets:business:receivable:client1:consulting) $-1100 | |
; | |
; receive reimbursement/prepayment for expenses. This is not revenue. | |
assets:business:receivable:client1:expenses $-100 | |
assets:business:bank:checking $100 | |
; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
runPagerForTopic :: FilePath -> Topic -> IO () | |
runPagerForTopic exe t = do | |
(Just inp, _, _, ph) <- createProcess (proc exe []){ | |
std_in=CreatePipe | |
} | |
hPutStrLn inp (lookupDocTxt t) | |
_ <- waitForProcess ph | |
return () |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[9 of 9] Compiling SSH ( src/SSH.hs, .stack-work/dist/i386-linux/Cabal-1.24.2.0/build/SSH.o ) | |
/home/simon/src/ssh_darcshub/src/SSH.hs:12:1: warning: [-Wunused-imports] | |
The import of ‘CryptoRandomGen, genBytes, genSeedLength’ | |
from module ‘Crypto.Random’ is redundant | |
/home/simon/src/ssh_darcshub/src/SSH.hs:13:1: warning: [-Wunused-impor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env stack | |
{- stack runghc | |
--package hledger-lib | |
--package text | |
-} | |
import Control.Monad | |
import qualified Data.Text as T | |
import Data.List | |
import Data.Text (pack,unpack) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env stack | |
{- stack runghc --verbosity info | |
--package hledger-lib | |
--package hledger | |
--package here | |
--package aeson | |
--package http-conduit | |
--package conduit-extra | |
--package decimal | |
--package text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"BTC": { | |
"USD": 2956.8899999999999 | |
}, | |
"ETH": { | |
"USD": 343.82999999999998 | |
}, | |
"LTC": { | |
"USD": 33.289999999999999 | |
} |