litxio / ptghci

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

Parentheses inside strings are parsed as parentheses (cannot submit) #26

Open MatthewScholefield opened 3 years ago

MatthewScholefield commented 3 years ago

When typing a string literal with a single parentheses, the interpreter thinks there are unbalanced parentheses and won't evaluate the expression (it asks for more input).

Example:

λ [3]: "works fine: ()"                                                                                                                                                                        
Out [3]: 
"works fine: ()"

λ [4]: "fails: (" 
...     
...     
...     
...