Skip to content

Commit 72e5439

Browse files
Merge pull request #10245 from haskell/bchinn-multiline-strings
Add MultilineStrings extension
2 parents 5f766d2 + e0bbb97 commit 72e5439

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,8 @@ data KnownExtension
551551
| -- | Allow the use of built-in syntax for list, tuple and sum type constructors
552552
-- rather than being exclusive to data constructors.
553553
ListTuplePuns
554+
| -- | Support multiline strings
555+
MultilineStrings
554556
deriving (Generic, Show, Read, Eq, Ord, Enum, Bounded, Typeable, Data)
555557

556558
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
@@ -31,15 +31,15 @@ md5Check proxy md5Int = structureHash proxy @?= md5FromInteger md5Int
3131
md5CheckGenericPackageDescription :: Proxy GenericPackageDescription -> Assertion
3232
md5CheckGenericPackageDescription proxy = md5Check proxy
3333
#if MIN_VERSION_base(4,19,0)
34-
0x3da8883a286b8fbfd9f94790d57cc06e
34+
0x62ad178a75f041af29947c9b3d83e6ed
3535
#else
36-
0x245e544da05f50f9dd0339a96ac99860
36+
0xba8f0baa8074fd238ad36a309399349e
3737
#endif
3838

3939
md5CheckLocalBuildInfo :: Proxy LocalBuildInfo -> Assertion
4040
md5CheckLocalBuildInfo proxy = md5Check proxy
4141
#if MIN_VERSION_base(4,19,0)
42-
0x7683c2daece12ba7982e80f860454f47
42+
0xc68e9c0758c4bf2d72fe82b3d55cee34
4343
#else
44-
0xe694b39b10bc861f47ea9c7b926a422a
44+
0xcf7e7bbcaec504d745fe086eec1786ff
4545
#endif

changelog.d/pr-10245

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

editors/vim/syntax/cabal.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ syn keyword cabalExtension contained
219219
\ MonoLocalBinds
220220
\ MonoPatBinds
221221
\ MonomorphismRestriction
222+
\ MultilineStrings
222223
\ MultiParamTypeClasses
223224
\ MultiWayIf
224225
\ NPlusKPatterns

0 commit comments

Comments
 (0)