Skip to content

Commit

Permalink
Merge pull request #9502 from ffaf1/add-extension
Browse files Browse the repository at this point in the history
Add `TypeAbstractions` extension
  • Loading branch information
mergify[bot] authored Dec 12, 2023
2 parents f31f2cd + 74261d9 commit 993481e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
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

0 comments on commit 993481e

Please sign in to comment.