judah / haskeline

A Haskell library for line input in command-line programs.
https://hackage.haskell.org/package/haskeline
BSD 3-Clause "New" or "Revised" License
221 stars 75 forks source link

Tab-completion refactor #112

Open judah opened 5 years ago

teto commented 4 years ago

I would like to rewrite one of my program from python to haskell. It would be nice to have the same level of autocompletion as https://github.com/python-cmd2/cmd2. I make extensive use of cmd2 autocompletion based on python's argparse parsers. Could haskeline allow to base autocompletion on optparse-applicative parser and autocompletes from that Parser ? Alternatively, that could live in an haskeline-optparse library.

(previously posted https://github.com/sdiehl/repline/issues/32)