Closed andreasabel closed 6 years ago
Took me forever to find the bug, there was a (maybe intended?) mixup between TokenCat
(correct) and Cat
(not correct of Integer
and friends). Maybe this was a hack not to generate the prtList
method for the (errorneous) justification that there is a generic print method for lists (polymorphic).
Test input:
haskell and haskell-gadt do not print this correctly:
The reason is that the printing classes for builtins do not define the
prtList
function.