[Haskell-cafe] Getting Haskeline to quit early
G Philip
haskell-cafe at accounts.gphilip.in
Mon Mar 23 16:00:08 UTC 2015
Hi Michael,
Thank you for your reply. I managed to find a solution by myself, which
I have added as an answer to my question on Stack Overflow [1].
wizards looks (look?) very interesting, though. I may change to using
that instead of Haskeline now!
Regards,
Philip
[1] http://stackoverflow.com/a/29195676/4108393
On Mon, Mar 23, 2015, at 06:48 AM, Simon Michael wrote:
> 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
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
More information about the Haskell-Cafe
mailing list