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

Move where -> let binding transformation to the desugaring step #381

Open
bergmark opened this issue Jan 12, 2014 · 0 comments
Open

Move where -> let binding transformation to the desugaring step #381

bergmark opened this issue Jan 12, 2014 · 0 comments

Comments

@bergmark
Copy link
Member

This is done in Fay.Compiler.Decl:

  PatBind srcloc (PVar _ ident) Nothing (UnGuardedRhs _ rhs) (Just bdecls) ->
    compileUnguardedRhs toplevel srcloc ident (Let S.noI bdecls rhs)

This should also not throw away the srcloc, it can be kept in the Let.

Move this to Desugar and add and throw an error on this case in the Decl module.

@ghost ghost assigned bergmark Jan 26, 2014
@bergmark bergmark removed their assignment May 15, 2014
@bergmark bergmark removed the simple label Aug 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant