Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MultilineStrings extension #10245

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading