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).
It works, however, if there is another String that matches the parenthesis on the same input.
The issue also happens with Chars, such as '(', '[' and '{'.
Upon pressing
Enter
on aString
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).It works, however, if there is another String that matches the parenthesis on the same input.
The issue also happens with
Char
s, such as'('
,'['
and'{'
.