Skip to content
Snippets Groups Projects
Unverified Commit 00835c07 authored by Mario's avatar Mario Committed by GitHub
Browse files

Registered the NamedDefaults language extension (#9740)


* Registered the NamedDefaults language extension

* Added changelog and Vim configuration lines

* Updated the expected hashes

---------

Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 8e971f57
No related branches found
No related tags found
No related merge requests found
Pipeline #93030 failed
...@@ -303,6 +303,9 @@ data KnownExtension ...@@ -303,6 +303,9 @@ data KnownExtension
| -- | Allow default instantiation of polymorphic types in more | -- | Allow default instantiation of polymorphic types in more
-- situations. -- situations.
ExtendedDefaultRules ExtendedDefaultRules
| -- | Allow @default@ declarations to explicitly name the class and
-- be exported.
NamedDefaults
| -- | Enable unboxed tuples. | -- | Enable unboxed tuples.
UnboxedTuples UnboxedTuples
| -- | Enable @deriving@ for classes 'Data.Typeable.Typeable' and | -- | Enable @deriving@ for classes 'Data.Typeable.Typeable' and
......
...@@ -33,15 +33,15 @@ md5Check proxy md5Int = structureHash proxy @?= md5FromInteger md5Int ...@@ -33,15 +33,15 @@ md5Check proxy md5Int = structureHash proxy @?= md5FromInteger md5Int
md5CheckGenericPackageDescription :: Proxy GenericPackageDescription -> Assertion md5CheckGenericPackageDescription :: Proxy GenericPackageDescription -> Assertion
md5CheckGenericPackageDescription proxy = md5Check proxy md5CheckGenericPackageDescription proxy = md5Check proxy
#if MIN_VERSION_base(4,19,0) #if MIN_VERSION_base(4,19,0)
0x5a48c6570cbcf96af4c51f38962e37b5 0x6639f65b143830a97e9c4f448b9cabb0
#else #else
0xc5c0e54b95e651216e92db04c9cd4ecf 0x855933700dccfbcc1d642e3470c3702c
#endif #endif
md5CheckLocalBuildInfo :: Proxy LocalBuildInfo -> Assertion md5CheckLocalBuildInfo :: Proxy LocalBuildInfo -> Assertion
md5CheckLocalBuildInfo proxy = md5Check proxy md5CheckLocalBuildInfo proxy = md5Check proxy
#if MIN_VERSION_base(4,19,0) #if MIN_VERSION_base(4,19,0)
0x6d668de33d7b4d5df3830e65e6941373 0x2ae73730f60c7c947e2cb63c4aac1e54
#else #else
0xcdf740970a7d37e5e7ca48ea5f4f25eb7 0x906cbfdef0bcdfe5734499cfabc615f5
#endif #endif
synopsis: Add language extension NamedDefaults
packages: Cabal-syntax
prs: #9740
description: {
- adds support for the `NamedDefaults` language extension (GHC proposal #409)
}
...@@ -221,6 +221,7 @@ syn keyword cabalExtension contained ...@@ -221,6 +221,7 @@ syn keyword cabalExtension contained
\ MultiParamTypeClasses \ MultiParamTypeClasses
\ MultiWayIf \ MultiWayIf
\ NPlusKPatterns \ NPlusKPatterns
\ NamedDefaults
\ NamedFieldPuns \ NamedFieldPuns
\ NamedWildCards \ NamedWildCards
\ NegativeLiterals \ NegativeLiterals
...@@ -362,6 +363,7 @@ syn keyword cabalExtension contained ...@@ -362,6 +363,7 @@ syn keyword cabalExtension contained
\ NoMultiParamTypeClasses \ NoMultiParamTypeClasses
\ NoMultiWayIf \ NoMultiWayIf
\ NoNPlusKPatterns \ NoNPlusKPatterns
\ NoNamedDefaults
\ NoNamedFieldPuns \ NoNamedFieldPuns
\ NoNamedWildCards \ NoNamedWildCards
\ NoNegativeLiterals \ NoNegativeLiterals
......
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