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
```
module A where {
module B where
module C where
}
```
is surprisingly parsed as
```
module A where {
module B where {
module C where {
}
}
}
```
Yet this conforms with Haskell's indentation rules.
Apparently, the start column after { does not matter, so the input
looks to the parser like:
```
module A where {
module B where
module C where
}
```
This parses in haskell but not in a suitable grammar using BNFC's
layout
mechanism:The problem seems to be that implicit blocks are dropped from the layout stack without emitting
layoutClose
tokens, see:bnfc/source/src/BNFC/Backend/Haskell/CFtoLayout.hs
Lines 127 to 128 in 71ebcee
I am using this grammar:
The text was updated successfully, but these errors were encountered: