-
Notifications
You must be signed in to change notification settings - Fork 94
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
Strange AST Produced with certain extensions and Numeric literals #455
Comments
merc1031
pushed a commit
to merc1031/haskell-src-exts
that referenced
this issue
Jun 29, 2020
merc1031
pushed a commit
to merc1031/haskell-src-exts
that referenced
this issue
Jun 29, 2020
merc1031
pushed a commit
to merc1031/haskell-src-exts
that referenced
this issue
Jun 29, 2020
merc1031
pushed a commit
to merc1031/haskell-src-exts
that referenced
this issue
Jun 29, 2020
merc1031
pushed a commit
to merc1031/haskell-src-exts
that referenced
this issue
Jun 29, 2020
merc1031
pushed a commit
to merc1031/haskell-src-exts
that referenced
this issue
Jun 29, 2020
merc1031
pushed a commit
to merc1031/haskell-src-exts
that referenced
this issue
Jun 29, 2020
merc1031
pushed a commit
to merc1031/haskell-src-exts
that referenced
this issue
Jun 29, 2020
merc1031
pushed a commit
to merc1031/haskell-src-exts
that referenced
this issue
Jun 29, 2020
merc1031
pushed a commit
to merc1031/haskell-src-exts
that referenced
this issue
Jun 29, 2020
merc1031
pushed a commit
to merc1031/haskell-src-exts
that referenced
this issue
Jun 29, 2020
merc1031
pushed a commit
to merc1031/haskell-src-exts
that referenced
this issue
Jun 29, 2020
merc1031
pushed a commit
to merc1031/haskell-src-exts
that referenced
this issue
Jun 29, 2020
merc1031
pushed a commit
to merc1031/haskell-src-exts
that referenced
this issue
Jun 29, 2020
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are a few issues with extended numeric literals i have seen when poking around floskell Which uses HSE
Ill try to capture these below
HexFloatLiterals produce a series of InifixApp and QVarOp, which ends up being ambiguous
They both produce the following (cleaned up for visibility)
Both
f 0xF . FFp12
andf 0xF.FFp12
(with -XHexFloatLiterals, ghci and ghc turn this one into a Float)produce
NumericUnderscores produce 2 different issues.
The first, simpler issue:
It splits the int on the first
_
and produces an App3_000
produces
The second more broken issue is combined with exponent syntax:
It splits the int on the first
_
and produces an App followed by a QVarOp +6.022_140_857e+23
produces
The text was updated successfully, but these errors were encountered: