Skip to content
Snippets Groups Projects
Unverified Commit 9177f336 authored by Mikolaj Konarski's avatar Mikolaj Konarski Committed by GitHub
Browse files

Merge pull request #8180 from haskell/mergify/bp/3.8/pr-8170

Update the list of known GHC extensions to match GHC 9.2 (backport #8170)
parents e0a09d6e 87d424ce
No related branches found
Tags sync-3.8.0.20220526-master
No related merge requests found
......@@ -861,9 +861,23 @@ data KnownExtension =
-- | Enable the use of record dot-accessor and updater syntax
| OverloadedRecordDot
-- | Provides record @.@ syntax in record updates, e.g. @x {foo.bar = 1}@.
--
-- * <https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/exts/overloaded_record_update.html#extension-OverloadedRecordUpdate>
| OverloadedRecordUpdate
-- | Enable data types for which an unlifted or levity-polymorphic result kind is inferred.
| UnliftedDatatypes
-- | Undocumented parsing-related extensions introduced in GHC 7.0.
| AlternativeLayoutRule
-- | Undocumented parsing-related extensions introduced in GHC 7.0.
| AlternativeLayoutRuleTransitional
-- | Undocumented parsing-related extensions introduced in GHC 7.2.
| RelaxedLayout
deriving (Generic, Show, Read, Eq, Ord, Enum, Bounded, Typeable, Data)
instance Binary KnownExtension
......
......@@ -27,9 +27,9 @@ tests = testGroup "Distribution.Utils.Structured"
-- The difference is in encoding of newtypes
#if MIN_VERSION_base(4,7,0)
, testCase "GenericPackageDescription" $
md5Check (Proxy :: Proxy GenericPackageDescription) 0x344677c9c09bde1c0f8cf94dc2b45030
md5Check (Proxy :: Proxy GenericPackageDescription) 0xaf3d4c667a8f019c98a45451419ad71c
, testCase "LocalBuildInfo" $
md5Check (Proxy :: Proxy LocalBuildInfo) 0x637b149bf956b706bfd3e4f99e66a910
md5Check (Proxy :: Proxy LocalBuildInfo) 0x6d132d3f99c869b678468256f24b6241
#endif
]
......
synopsis: Update the list of known GHC extensions to match GHC 9.2
packages: Cabal-syntax
prs: #8170
issues: #8168
description: {
- Add OverloadedRecordUpdate and undocumented AlternativeLayoutRule,
AlternativeLayoutRuleTransitional, RelaxedLayout to KnownExtension.
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment