File tree Expand file tree Collapse file tree 4 files changed +18
-4
lines changed
Cabal-syntax/src/Language/Haskell
Cabal-tests/tests/UnitTests/Distribution/Utils Expand file tree Collapse file tree 4 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -303,6 +303,9 @@ data KnownExtension
303
303
| -- | Allow default instantiation of polymorphic types in more
304
304
-- situations.
305
305
ExtendedDefaultRules
306
+ | -- | Allow @default@ declarations to explicitly name the class and
307
+ -- be exported.
308
+ NamedDefaults
306
309
| -- | Enable unboxed tuples.
307
310
UnboxedTuples
308
311
| -- | Enable @deriving@ for classes 'Data.Typeable.Typeable' and
Original file line number Diff line number Diff line change @@ -33,15 +33,15 @@ md5Check proxy md5Int = structureHash proxy @?= md5FromInteger md5Int
33
33
md5CheckGenericPackageDescription :: Proxy GenericPackageDescription -> Assertion
34
34
md5CheckGenericPackageDescription proxy = md5Check proxy
35
35
#if MIN_VERSION_base(4,19,0)
36
- 0x5a48c6570cbcf96af4c51f38962e37b5
36
+ 0x6639f65b143830a97e9c4f448b9cabb0
37
37
#else
38
- 0xc5c0e54b95e651216e92db04c9cd4ecf
38
+ 0x855933700dccfbcc1d642e3470c3702c
39
39
#endif
40
40
41
41
md5CheckLocalBuildInfo :: Proxy LocalBuildInfo -> Assertion
42
42
md5CheckLocalBuildInfo proxy = md5Check proxy
43
43
#if MIN_VERSION_base(4,19,0)
44
- 0x6d668de33d7b4d5df3830e65e6941373
44
+ 0x2ae73730f60c7c947e2cb63c4aac1e54
45
45
#else
46
- 0xcdf740970a7d37e5e7ca48ea5f4f25eb7
46
+ 0x906cbfdef0bcdfe5734499cfabc615f5
47
47
#endif
Original file line number Diff line number Diff line change
1
+ synopsis: Add language extension NamedDefaults
2
+ packages: Cabal-syntax
3
+ prs: #9740
4
+
5
+ description: {
6
+
7
+ - adds support for the `NamedDefaults` language extension (GHC proposal #409)
8
+
9
+ }
Original file line number Diff line number Diff line change @@ -221,6 +221,7 @@ syn keyword cabalExtension contained
221
221
\ MultiParamTypeClasses
222
222
\ MultiWayIf
223
223
\ NPlusKPatterns
224
+ \ NamedDefaults
224
225
\ NamedFieldPuns
225
226
\ NamedWildCards
226
227
\ NegativeLiterals
@@ -362,6 +363,7 @@ syn keyword cabalExtension contained
362
363
\ NoMultiParamTypeClasses
363
364
\ NoMultiWayIf
364
365
\ NoNPlusKPatterns
366
+ \ NoNamedDefaults
365
367
\ NoNamedFieldPuns
366
368
\ NoNamedWildCards
367
369
\ NoNegativeLiterals
You can’t perform that action at this time.
0 commit comments