File tree 4 files changed +23
-2
lines changed
Cabal-syntax/src/Language/Haskell
Cabal-tests/tests/UnitTests/Distribution/Utils 4 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,11 @@ data KnownExtension =
165
165
-- | Enable the dreaded monomorphism restriction.
166
166
| MonomorphismRestriction
167
167
168
+ -- | Enable deep subsumption, relaxing the simple subsumption rules,
169
+ -- implicitly inserting eta-expansions when matching up function types
170
+ -- with different quantification structures.
171
+ | DeepSubsumption
172
+
168
173
-- | Allow a specification attached to a multi-parameter type class
169
174
-- which indicates that some parameters are entirely determined by
170
175
-- others. The implementation will check that this property holds
@@ -499,6 +504,9 @@ data KnownExtension =
499
504
-- | Enable datatype promotion.
500
505
| DataKinds
501
506
507
+ -- | Enable @type data@ declarations, defining constructors at the type level.
508
+ | TypeData
509
+
502
510
-- | Enable parallel arrays syntax (@[:@, @:]@) for /Data Parallel Haskell/.
503
511
| ParallelArrays
504
512
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ tests = testGroup "Distribution.Utils.Structured"
27
27
-- The difference is in encoding of newtypes
28
28
#if MIN_VERSION_base(4,7,0)
29
29
, testCase " GenericPackageDescription" $
30
- md5Check (Proxy :: Proxy GenericPackageDescription ) 0xaf3d4c667a8f019c98a45451419ad71c
30
+ md5Check (Proxy :: Proxy GenericPackageDescription ) 0x227c04c63afe656449d6feb7220e5194
31
31
, testCase " LocalBuildInfo" $
32
- md5Check (Proxy :: Proxy LocalBuildInfo ) 0x8ef5a39cb640e4340cf5c43a8300ff94
32
+ md5Check (Proxy :: Proxy LocalBuildInfo ) 0x4ec3f95ae75fea8422b1c5e15724f1a4
33
33
#endif
34
34
]
35
35
Original file line number Diff line number Diff line change
1
+ synopsis: Add language extensions DeepSubsumption and TypeData
2
+ packages: Cabal-syntax
3
+ prs: #8493
4
+ significance: significant
5
+
6
+ description: {
7
+
8
+ - adds support for the DeepSubsumption language extension (GHC proposal #511)
9
+ - adds support for the TypeData language extension (GHC proposal #106)
10
+
11
+ }
Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ syn keyword cabalExtension contained
160
160
\ DataKinds
161
161
\ DatatypeContexts
162
162
\ DefaultSignatures
163
+ \ DeepSubsumption
163
164
\ DeriveAnyClass
164
165
\ DeriveDataTypeable
165
166
\ DeriveFoldable
@@ -266,6 +267,7 @@ syn keyword cabalExtension contained
266
267
\ TransformListComp
267
268
\ TupleSections
268
269
\ TypeApplications
270
+ \ TypeData
269
271
\ TypeFamilies
270
272
\ TypeFamilyDependencies
271
273
\ TypeInType
You can’t perform that action at this time.
0 commit comments