Skip to content

Instantly share code, notes, and snippets.

@adept
Created November 24, 2017 23:09
Show Gist options
  • Save adept/7b532328bdd4aef930a99a63cf53f68b to your computer and use it in GitHub Desktop.
Save adept/7b532328bdd4aef930a99a63cf53f68b to your computer and use it in GitHub Desktop.
parsePeriodExpr accepts lowercased input only, which is not ok for period transactions
First transaction will parse, second will not:
```
cat every-month.journal ~/devel/haskell/darcs-get/hledger/examples
~ aug to sep
assets
expenses $1
~ Aug to Sep
assets
expenses $2
```
Demo:
```
../bin/hledger-budget bal -f every-month.journal ~/devel/haskell/darcs-get/hledger/examples
hledger-budget: Failed to parse "Aug to Sep": date parse error ()
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment