Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TypeAbstractions extension #9502

Merged
merged 1 commit into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Cabal-syntax/src/Language/Haskell/Extension.hs
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,8 @@ data KnownExtension
AlternativeLayoutRuleTransitional
| -- | Undocumented parsing-related extensions introduced in GHC 7.2.
RelaxedLayout
| -- | Allow the use of type abstraction syntax.
TypeAbstractions
deriving (Generic, Show, Read, Eq, Ord, Enum, Bounded, Typeable, Data)

instance Binary KnownExtension
Expand Down
8 changes: 4 additions & 4 deletions Cabal-tests/tests/UnitTests/Distribution/Utils/Structured.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ md5Check proxy md5Int = structureHash proxy @?= md5FromInteger md5Int
md5CheckGenericPackageDescription :: Proxy GenericPackageDescription -> Assertion
md5CheckGenericPackageDescription proxy = md5Check proxy
#if MIN_VERSION_base(4,19,0)
0xf5fdb32b43aca790192f44d9ecaa9689
0x87037bc65fba873f53c03ce572a42229
#else
0xb287a6f04e34ef990cdd15bc6cb01c76
0x5817c798e23df281d794ad27754ad43f
#endif

md5CheckLocalBuildInfo :: Proxy LocalBuildInfo -> Assertion
md5CheckLocalBuildInfo proxy = md5Check proxy
#if MIN_VERSION_base(4,19,0)
0x205fbe2649bc5e488bce50c07a71cadb
0x83cb87bceb4c1634e7dda192c3ad6579
#else
0x26e91a71ebd19d4d6ce37f798ede249a
0x4beeb42e94807be904bc5d15355c98cd
#endif
11 changes: 11 additions & 0 deletions changelog.d/pr-9502
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
synopsis: Add language extension `TypeAbstractions`
packages: Cabal-syntax
prs: #9502
issues: #9496

description: {

- Adds support for the TypeAbstractions language extension.

}

2 changes: 2 additions & 0 deletions editors/vim/syntax/cabal.vim
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ syn keyword cabalExtension contained
\ TraditionalRecordSyntax
\ TransformListComp
\ TupleSections
\ TypeAbstractions
\ TypeApplications
\ TypeData
\ TypeFamilies
Expand Down Expand Up @@ -408,6 +409,7 @@ syn keyword cabalExtension contained
\ NoTraditionalRecordSyntax
\ NoTransformListComp
\ NoTupleSections
\ NoTypeAbstractions
\ NoTypeApplications
\ NoTypeData
\ NoTypeFamilies
Expand Down
Loading