summaryrefslogtreecommitdiff
path: root/compiler/codeGen
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2013-08-18 23:01:57 -0500
committerAustin Seipp <aseipp@pobox.com>2013-08-18 23:01:57 -0500
commit96adf0e99b1a6595ee40ef9c05263a4fe73eb7c5 (patch)
treea80ec98ad604ad4428661b7c07163d09595b0c7c /compiler/codeGen
parent5d77d8d4e007a6f332558620b3d62749afa00e24 (diff)
downloadhaskell-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