
23 Mar
2015
23 Mar
'15
1:48 a.m.
Hi Philip, I'm sorry this answer is not more specific, but perhaps you can get ideas from hledger's add command, which has that functionality: http://hledger.org/step-by-step.html#record-a-transaction-with-hledger-add Here's the code: https://github.com/simonmichael/hledger/blob/master/hledger/Hledger/Cli/Add.... Note that it uses wizards, which sits on top of haskeline and is rather nice: http://hackage.haskell.org/package/wizards Hope it helps, -Simon