Skip to content

Commit 9ddaa56

Browse files
authored
Merge pull request #8854 from tek/torsten.schmits/add-extension-ListTuplePuns
add the extension ListTuplePuns (GHC proposal 475)
2 parents 3a275e5 + ea7f8af commit 9ddaa56

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,9 @@ data KnownExtension
542542
RelaxedLayout
543543
| -- | Allow the use of type abstraction syntax.
544544
TypeAbstractions
545+
| -- | Allow the use of built-in syntax for list, tuple and sum type constructors
546+
-- rather than being exclusive to data constructors.
547+
ListTuplePuns
545548
deriving (Generic, Show, Read, Eq, Ord, Enum, Bounded, Typeable, Data)
546549

547550
instance Binary KnownExtension

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

Lines changed: 4 additions & 4 deletions
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-
0xbaf013a54a9ae4dab8d9c8beecb5ac5d
36+
0x4136daf844669c3c272845160cb5a908
3737
#else
38-
0xcbd99e3b359decfab4b25e1335067f72
38+
0x196b441722dfe556ed5b5d1d874741b3
3939
#endif
4040

4141
md5CheckLocalBuildInfo :: Proxy LocalBuildInfo -> Assertion
4242
md5CheckLocalBuildInfo proxy = md5Check proxy
4343
#if MIN_VERSION_base(4,19,0)
44-
0x403539e40a138deaf1a1189aa349cff2
44+
0x8a30fa23374160aac9cdd1996dc5112b
4545
#else
46-
0x279674c69cfcfd5e8ffd51bc02965cd7
46+
0x2e959a7f1da8f0d11f6923831ab6ab55
4747
#endif

changelog.d/pr-8854

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
synopsis: Add language extension ListTuplePuns
2+
packages: Cabal-syntax
3+
prs: #8854
4+
5+
description: {
6+
7+
- adds support for the `ListTuplePuns` language extension (GHC proposal #475)
8+
9+
}

editors/vim/syntax/cabal.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ syn keyword cabalExtension contained
209209
\ LexicalNegation
210210
\ LiberalTypeSynonyms
211211
\ LinearTypes
212+
\ ListTuplePuns
212213
\ RequiredTypeArguments
213214
\ MagicHash
214215
\ MonadComprehensions

0 commit comments

Comments
 (0)