diff options
author | Vladislav Zavialov <vlad.z.4096@gmail.com> | 2020-06-19 10:46:02 +0300 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-07-01 15:41:38 -0400 |
commit | cbb6b62f54c77637e29bc66e3d1214541c347753 (patch) | |
tree | 7c6533d46ae1841d7ef6a1ade39edc72393b43e9 /libraries/ghc-boot-th | |
parent | 85310fb83fdb7d7294bd453026102fc42000bf14 (diff) | |
download | haskell-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.hs | 1 |
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 |