Skip to content

Commit

Permalink
Add TypeAbstractions extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ffaf1 committed Dec 8, 2023
1 parent a1cbd89 commit 7e135fb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 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
4 changes: 2 additions & 2 deletions Cabal-tests/tests/UnitTests/Distribution/Utils/Structured.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ md5CheckGenericPackageDescription proxy = md5Check proxy
#if MIN_VERSION_base(4,19,0)
0xf5fdb32b43aca790192f44d9ecaa9689
#else
0xb287a6f04e34ef990cdd15bc6cb01c76
0x5817c798e23df281d794ad27754ad43f
#endif

md5CheckLocalBuildInfo :: Proxy LocalBuildInfo -> Assertion
md5CheckLocalBuildInfo proxy = md5Check proxy
#if MIN_VERSION_base(4,19,0)
0x205fbe2649bc5e488bce50c07a71cadb
#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 7e135fb

Please sign in to comment.