Skip to content

Commit

Permalink
Add RequiredTypeArguments to known extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
int-index committed Oct 9, 2022
1 parent 519d2b4 commit 49b91e0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
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
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 49b91e0

Please sign in to comment.