Skip to content

Add new notation for negative numbers when using {-# LANGUAGE NegativeLiterals #-}

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.

Edited by bg_
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information