diff options
| author | Ben Gamari <ben@smart-cactus.org> | 2015-06-16 20:04:02 +0200 |
|---|---|---|
| committer | Ben Gamari <ben@smart-cactus.org> | 2015-06-16 20:04:02 +0200 |
| commit | 0d6c97ba1267a53825809f3c99364f7aa38f0847 (patch) | |
| tree | 909024bee2d533ffa1130e96a89b574846d097cc /compiler/codeGen/CodeGen/Platform | |
| parent | df63736341d8b92c0f7f0012bf88929e32a1403f (diff) | |
| parent | 1ff7f09b3abedb2a6daf384b55ad3d0134f0d174 (diff) | |
| download | haskell-0d6c97ba1267a53825809f3c99364f7aa38f0847.tar.gz | |
Lexer: Suggest adding 'let' on unexpected '=' token
Summary:
I've heard numerous fledgling Haskeller's complain about the behavior of
ghci regarding bindings. While most REPLs accept bindings of the form
`x = 42`, GHCi is implicitly a `do` block, meaning that the user must
know to use a `let` to introduce a binding.
Here we suggest to the user that they may need a `let` and give them a
small example in the event that we find an unexpected `=` token.
Reviewers: austin
Reviewed By: austin
Subscribers: thomie, bgamari
Differential Revision: https://phabricator.haskell.org/D980
Diffstat (limited to 'compiler/codeGen/CodeGen/Platform')
0 files changed, 0 insertions, 0 deletions
