sdiehl / repline

Haskeline wrapper for GHCi-like REPL interfaces
MIT License
107 stars 28 forks source link

Basic Repline example, commands not working #19

Closed solomon-b closed 4 years ago

solomon-b commented 4 years ago

I was trying to get Repline working in a project of mine and wasn't able to get command options to work. So I made a test stack project where I copy pasted in the exact Simple example code and still the command options did not work:

Welcome!
>>> 
kirk   spock  mccoy
>>> kirk 
"kirk "
>>> spam
"spam"
>>> :say Hello Haskell
":say Hello Haskell"
>>> :help arg1 arg2 arg3
":help arg1 arg2 arg3"

I'm using thelts-14.13 resolver. Here is a link to my sample project: https://github.com/ssbothwell/replinetest

solomon-b commented 4 years ago

The Readme examples pass Nothing as the prefix char instead of Just ':'. This contradicts the examples otherwise, and is probably just a typo.

sdiehl commented 4 years ago

This should be fixed now.