haskell-suite / haskell-src-exts

Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer
Other
193 stars 94 forks source link

Parse error with { indentation inside do #381

Open ndmitchell opened 7 years ago

ndmitchell commented 7 years ago

Given:

main = do
     case True of
     { _ -> return () }

GHC works successfully. HSE gives ParseFailed (SrcLoc "<unknown>.hs" 3 6) "Parse error: virtual }"

ndmitchell commented 7 years ago

Originally reported by @pjljvandelaar at https://github.com/ndmitchell/hlint/issues/386