litxio / ptghci

High-powered REPL for Haskell, inspired by IPython
Other
336 stars 6 forks source link

Issue with Strings containing unbalanced opening parenthesis #20

Open heitor-lassarote opened 4 years ago

heitor-lassarote commented 4 years ago

Upon pressing Enter on a String containing unbalanced opening parenthesis, brackets or braces such as "(", "(()", "[[", "{" or ")(", ptghci doesn't input the line (that is, it doesn't accept the expression, as if it's expecting more input to be entered).

image

It works, however, if there is another String that matches the parenthesis on the same input.

image

The issue also happens with Chars, such as '(', '[' and '{'.

RichardWarfield commented 4 years ago

Thanks for reporting this issue! Can confirm it's reproducible.