[GHC] #9869: Add new notation for negative numbers when using -XNegativeLiterals
GHC
ghc-devs at haskell.org
Sat Dec 6 19:22:00 UTC 2014
#9869: Add new notation for negative numbers when using -XNegativeLiterals
-------------------------------------+-------------------------------------
Reporter: bg_ | Owner:
Type: feature request | Status: new
Priority: low | Milestone:
Component: Compiler | Version: 7.8.3
Keywords: | Operating System:
Architecture: Unknown/Multiple | Unknown/Multiple
Difficulty: Unknown | Type of failure:
Blocked By: | None/Unknown
Related Tickets: | Test Case:
| Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
I propose that when using -XNegativeLiterals ghc should also read ~123 as
a negative literal. SML uses ~ as the unary minus it, so it's not
completely out of the blue. The reason would be to minimize ambiguity.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9869>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list