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