diff options
author | Austin Seipp <aseipp@pobox.com> | 2013-08-18 23:01:57 -0500 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2013-08-18 23:01:57 -0500 |
commit | 96adf0e99b1a6595ee40ef9c05263a4fe73eb7c5 (patch) | |
tree | a80ec98ad604ad4428661b7c07163d09595b0c7c /compiler/codeGen | |
parent | 5d77d8d4e007a6f332558620b3d62749afa00e24 (diff) | |
download | haskell-96adf0e99b1a6595ee40ef9c05263a4fe73eb7c5.tar.gz |
Improve error when using forall with UnicodeSyntax
Fixes Trac #7901.
'∀' is neither upper nor lowercase, unlike the 'f' in 'forall', so when
explicit forall is not enabled, it creates a parse error before reaching
the '.', which is where we give a nice message for ascii 'forall'.
Therefore, we make '∀' into a token as long as UnicodeSyntax is enabled,
which is safe because its caselessness means it can never be mistaken
for a symbol, and check extensions in the parser when the 'forall' rule
is used.
Authored-by: Paul Cavallaro <ptc@fb.com>
Authored-by: Anders Papitto <anderspapitto@gmail.com>
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'compiler/codeGen')
0 files changed, 0 insertions, 0 deletions