Skip to content

Commit

Permalink
Merge pull request #8854 from tek/torsten.schmits/add-extension-ListT…
Browse files Browse the repository at this point in the history
…uplePuns

add the extension ListTuplePuns (GHC proposal 475)
  • Loading branch information
mergify[bot] authored Feb 22, 2024
2 parents 3a275e5 + ea7f8af commit 9ddaa56
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Cabal-syntax/src/Language/Haskell/Extension.hs
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,9 @@ data KnownExtension
RelaxedLayout
| -- | Allow the use of type abstraction syntax.
TypeAbstractions
| -- | Allow the use of built-in syntax for list, tuple and sum type constructors
-- rather than being exclusive to data constructors.
ListTuplePuns
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)
0xbaf013a54a9ae4dab8d9c8beecb5ac5d
0x4136daf844669c3c272845160cb5a908
#else
0xcbd99e3b359decfab4b25e1335067f72
0x196b441722dfe556ed5b5d1d874741b3
#endif

md5CheckLocalBuildInfo :: Proxy LocalBuildInfo -> Assertion
md5CheckLocalBuildInfo proxy = md5Check proxy
#if MIN_VERSION_base(4,19,0)
0x403539e40a138deaf1a1189aa349cff2
0x8a30fa23374160aac9cdd1996dc5112b
#else
0x279674c69cfcfd5e8ffd51bc02965cd7
0x2e959a7f1da8f0d11f6923831ab6ab55
#endif
9 changes: 9 additions & 0 deletions changelog.d/pr-8854
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
synopsis: Add language extension ListTuplePuns
packages: Cabal-syntax
prs: #8854

description: {

- adds support for the `ListTuplePuns` language extension (GHC proposal #475)

}
1 change: 1 addition & 0 deletions editors/vim/syntax/cabal.vim
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ syn keyword cabalExtension contained
\ LexicalNegation
\ LiberalTypeSynonyms
\ LinearTypes
\ ListTuplePuns
\ RequiredTypeArguments
\ MagicHash
\ MonadComprehensions
Expand Down

0 comments on commit 9ddaa56

Please sign in to comment.