[Haskell-cafe] Getting Haskeline to quit early

Simon Michael simon at joyful.com
Mon Mar 23 05:48:40 UTC 2015


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.hs

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



More information about the Haskell-Cafe mailing list