Skip to content

Commit

Permalink
Merge branch 'master' into cc/haskell#8452
Browse files Browse the repository at this point in the history
  • Loading branch information
erinclemmer authored Oct 15, 2022
2 parents 637a02b + bb187b8 commit d151355
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
module Distribution.PackageDescription.FieldGrammar (
-- * Package description
packageDescriptionFieldGrammar,
CompatFilePath(..),
CompatLicenseFile(..),
-- * Library
libraryFieldGrammar,
-- * Foreign library
Expand Down
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 @@ -663,6 +663,9 @@ data KnownExtension =
-- | Enable linear types.
| LinearTypes

-- | Allow the use of visible forall in types of terms.
| RequiredTypeArguments

-- | Enable the generation of selector functions corresponding to record fields.
| FieldSelectors

Expand Down
4 changes: 2 additions & 2 deletions Cabal-tests/tests/UnitTests/Distribution/Utils/Structured.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ tests = testGroup "Distribution.Utils.Structured"
-- The difference is in encoding of newtypes
#if MIN_VERSION_base(4,7,0)
, testCase "GenericPackageDescription" $
md5Check (Proxy :: Proxy GenericPackageDescription) 0x227c04c63afe656449d6feb7220e5194
md5Check (Proxy :: Proxy GenericPackageDescription) 0xa3e9433662ecf0c7a3c26f6d75a53ba1
, testCase "LocalBuildInfo" $
md5Check (Proxy :: Proxy LocalBuildInfo) 0x4ec3f95ae75fea8422b1c5e15724f1a4
md5Check (Proxy :: Proxy LocalBuildInfo) 0x05ef40b1f97c55be526f63ea4cdacae1
#endif
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ packages: .
source-repository-package
type: git
-- A Sample repo to test post-checkout-command
location: https://github.com/haskell/bytestring
location: https://github.com/haskell/bytestring
post-checkout-command: false
tag: 0.10.9.0
-- https://en.wikipedia.org/wiki/True_and_false_(commands)
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ source-repository-package
-- A Sample repo to test post-checkout-command
location: https://github.com/haskell/bytestring
post-checkout-command: true
tag: 0.10.9.0
-- https://en.wikipedia.org/wiki/True_and_false_(commands)
2 changes: 2 additions & 0 deletions editors/vim/syntax/cabal.vim
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ syn keyword cabalExtension contained
\ LexicalNegation
\ LiberalTypeSynonyms
\ LinearTypes
\ RequiredTypeArguments
\ MagicHash
\ MonadComprehensions
\ MonadFailDesugaring
Expand Down Expand Up @@ -345,6 +346,7 @@ syn keyword cabalExtension contained
\ NoLexicalNegation
\ NoLiberalTypeSynonyms
\ NoLinearTypes
\ NoRequiredTypeArguments
\ NoMagicHash
\ NoMonadComprehensions
\ NoMonadFailDesugaring
Expand Down

0 comments on commit d151355

Please sign in to comment.