Skip to content

Commit 2d52de2

Browse files
committed
Add TypeAbstractions extension
1 parent a1cbd89 commit 2d52de2

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

Cabal-syntax/src/Language/Haskell/Extension.hs

+2
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,8 @@ data KnownExtension
540540
AlternativeLayoutRuleTransitional
541541
| -- | Undocumented parsing-related extensions introduced in GHC 7.2.
542542
RelaxedLayout
543+
| -- | Allow the use of type abstraction syntax.
544+
TypeAbstractions
543545
deriving (Generic, Show, Read, Eq, Ord, Enum, Bounded, Typeable, Data)
544546

545547
instance Binary KnownExtension

Cabal-tests/tests/UnitTests/Distribution/Utils/Structured.hs

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ md5Check proxy md5Int = structureHash proxy @?= md5FromInteger md5Int
3333
md5CheckGenericPackageDescription :: Proxy GenericPackageDescription -> Assertion
3434
md5CheckGenericPackageDescription proxy = md5Check proxy
3535
#if MIN_VERSION_base(4,19,0)
36-
0xf5fdb32b43aca790192f44d9ecaa9689
36+
0x87037bc65fba873f53c03ce572a42229
3737
#else
38-
0xb287a6f04e34ef990cdd15bc6cb01c76
38+
0x5817c798e23df281d794ad27754ad43f
3939
#endif
4040

4141
md5CheckLocalBuildInfo :: Proxy LocalBuildInfo -> Assertion
4242
md5CheckLocalBuildInfo proxy = md5Check proxy
4343
#if MIN_VERSION_base(4,19,0)
44-
0x205fbe2649bc5e488bce50c07a71cadb
44+
0x83cb87bceb4c1634e7dda192c3ad6579
4545
#else
46-
0x26e91a71ebd19d4d6ce37f798ede249a
46+
0x4beeb42e94807be904bc5d15355c98cd
4747
#endif

changelog.d/pr-9502

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
synopsis: Add language extension `TypeAbstractions`
2+
packages: Cabal-syntax
3+
prs: #9502
4+
issues: #9496
5+
6+
description: {
7+
8+
- Adds support for the TypeAbstractions language extension.
9+
10+
}
11+

editors/vim/syntax/cabal.vim

+2
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ syn keyword cabalExtension contained
268268
\ TraditionalRecordSyntax
269269
\ TransformListComp
270270
\ TupleSections
271+
\ TypeAbstractions
271272
\ TypeApplications
272273
\ TypeData
273274
\ TypeFamilies
@@ -408,6 +409,7 @@ syn keyword cabalExtension contained
408409
\ NoTraditionalRecordSyntax
409410
\ NoTransformListComp
410411
\ NoTupleSections
412+
\ NoTypeAbstractions
411413
\ NoTypeApplications
412414
\ NoTypeData
413415
\ NoTypeFamilies

0 commit comments

Comments
 (0)