Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

let with no bindings in do notation causes parse error #373

Open
ndmitchell opened this issue Jul 28, 2017 · 0 comments · May be fixed by #416
Open

let with no bindings in do notation causes parse error #373

ndmitchell opened this issue Jul 28, 2017 · 0 comments · May be fixed by #416
Labels

Comments

@ndmitchell
Copy link
Contributor

Originally from ndmitchell/hlint#368 by @bucklereed, taking:

foo = do
  let
  Just 3

bar :: ()
bar = ()

If I run with HSE:

Prelude Language.Haskell.Exts> parse "foo = do\n let\n Just 3\n\nbar :: ()\nbar = ()" :: ParseResult (Module SrcSpanInfo)
ParseFailed (SrcLoc "<unknown>.hs" 5 1) "Parse error: bar"

This works with GHC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants