Skip to content

Commit

Permalink
Merge pull request #10245 from haskell/bchinn-multiline-strings
Browse files Browse the repository at this point in the history
Add MultilineStrings extension
  • Loading branch information
brandonchinn178 authored Aug 6, 2024
2 parents 5f766d2 + e0bbb97 commit 72e5439
Show file tree
Hide file tree
Showing 4 changed files with 15 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 @@ -551,6 +551,8 @@ data KnownExtension
| -- | Allow the use of built-in syntax for list, tuple and sum type constructors
-- rather than being exclusive to data constructors.
ListTuplePuns
| -- | Support multiline strings
MultilineStrings
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 @@ -31,15 +31,15 @@ md5Check proxy md5Int = structureHash proxy @?= md5FromInteger md5Int
md5CheckGenericPackageDescription :: Proxy GenericPackageDescription -> Assertion
md5CheckGenericPackageDescription proxy = md5Check proxy
#if MIN_VERSION_base(4,19,0)
0x3da8883a286b8fbfd9f94790d57cc06e
0x62ad178a75f041af29947c9b3d83e6ed
#else
0x245e544da05f50f9dd0339a96ac99860
0xba8f0baa8074fd238ad36a309399349e
#endif

md5CheckLocalBuildInfo :: Proxy LocalBuildInfo -> Assertion
md5CheckLocalBuildInfo proxy = md5Check proxy
#if MIN_VERSION_base(4,19,0)
0x7683c2daece12ba7982e80f860454f47
0xc68e9c0758c4bf2d72fe82b3d55cee34
#else
0xe694b39b10bc861f47ea9c7b926a422a
0xcf7e7bbcaec504d745fe086eec1786ff
#endif
8 changes: 8 additions & 0 deletions changelog.d/pr-10245
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
synopsis: Add MultilineStrings extension
packages: Cabal-syntax
prs: #10245
description: {

- adds support for the `MultilineStrings` language extension (GHC proposal #637)

}
1 change: 1 addition & 0 deletions editors/vim/syntax/cabal.vim
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ syn keyword cabalExtension contained
\ MonoLocalBinds
\ MonoPatBinds
\ MonomorphismRestriction
\ MultilineStrings
\ MultiParamTypeClasses
\ MultiWayIf
\ NPlusKPatterns
Expand Down

0 comments on commit 72e5439

Please sign in to comment.