You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Haskell backend prints a list [Char] containing characters as string #359
The overloaded prt function can naturally not deal with both of [Char] and String, since these are the same type. Should not be a problem with Text tokens, though.
A way to fix this would be to have a non-overloaded printing function for String, so it does not clash with [Char].
Activity
andreasabel commentedon May 2, 2021
The overloaded
prtfunction can naturally not deal with both of[Char]andString, since these are the same type. Should not be a problem withTexttokens, though.A way to fix this would be to have a non-overloaded printing function for
String, so it does not clash with[Char].andreasabel commentedon May 2, 2021
[Char]is used, we now haveprintStringinstead ofinstance Print String.prtListhas been removed fromclass Print.[ #359 ] Haskell: fixed printing of String lists
[ fixed BNFC#359 ] Haskell: `printString` instead of `instance Print …