summaryrefslogtreecommitdiff
path: root/libraries/ghc-boot-th
diff options
context:
space:
mode:
authorVladislav Zavialov <vlad.z.4096@gmail.com>2020-06-19 10:46:02 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-07-01 15:41:38 -0400
commitcbb6b62f54c77637e29bc66e3d1214541c347753 (patch)
tree7c6533d46ae1841d7ef6a1ade39edc72393b43e9 /libraries/ghc-boot-th
parent85310fb83fdb7d7294bd453026102fc42000bf14 (diff)
downloadhaskell-cbb6b62f54c77637e29bc66e3d1214541c347753.tar.gz
Implement -XLexicalNegation (GHC Proposal #229)
This patch introduces a new extension, -XLexicalNegation, which detects whether the minus sign stands for negation or subtraction using the whitespace-based rules described in GHC Proposal #229. Updates haddock submodule.
Diffstat (limited to 'libraries/ghc-boot-th')
-rw-r--r--libraries/ghc-boot-th/GHC/LanguageExtensions/Type.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/libraries/ghc-boot-th/GHC/LanguageExtensions/Type.hs b/libraries/ghc-boot-th/GHC/LanguageExtensions/Type.hs
index e7ef699c68..b455fab533 100644
--- a/libraries/ghc-boot-th/GHC/LanguageExtensions/Type.hs
+++ b/libraries/ghc-boot-th/GHC/LanguageExtensions/Type.hs
@@ -146,6 +146,7 @@ data Extension
| ImportQualifiedPost
| CUSKs
| StandaloneKindSignatures
+ | LexicalNegation
deriving (Eq, Enum, Show, Generic, Bounded)
-- 'Ord' and 'Bounded' are provided for GHC API users (see discussions
-- in https://gitlab.haskell.org/ghc/ghc/merge_requests/2707 and