haskell / haskell/happy

GLR_Lib.hs "Couldn't match expected type ‘Bool’ with actual type ‘Int#’"

Open
#173 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
322
Forks
86
PR merge metrics
No merged PRs in 30d

Description

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]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.