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
GLR_Lib.hs "Couldn't match expected type ‘Bool’ with actual type ‘Int#’" #173
GLR mode seems broken. Trying to compile the generated parser reports several instances of the error Couldn't match expected type ‘Bool’ with actual type ‘Int#’.
E.g
GLR_Lib.hs:236:33: error:
• Couldn't match expected type ‘Bool’ with actual type ‘Int#’
• In the expression: (this_state ==# goto this_state m)
In a stmt of a list comprehension:
(this_state ==# goto this_state m)
In the expression:
[m |
(m, 0, _) <- rs,
(this_state ==# goto this_state m),
m `notElem` cyclic_names]
Activity
taasan commentedon Feb 13, 2021
I get the same error (happy 1.19.12, Haskell Platform 2020.2)
It works if I remove the
--ghcflagandreasabel commentedon Feb 14, 2021
Thanks @taasan for the hint, that helped me to fix BNFC/bnfc#340!
Ericson2314 commentedon Feb 14, 2021
@andreasabel do you know what version you encountered this originally in? (Or, to cut to the chase, was it 3.20 the latest?)
andreasabel commentedon Feb 14, 2021
No, this issue is quite a bit older. A couple of years... Could it be due to some non-backwards compatible change in GHC?
Ericson2314 commentedon Feb 25, 2021
Thanks, @andreasabel.