File tree 4 files changed +20
-3
lines changed
Cabal-syntax/src/Language/Haskell
Cabal-tests/tests/UnitTests/Distribution/Utils 4 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ classifyLanguage = \str -> case lookup str langTable of
92
92
93
93
-- Note: if you add a new 'KnownExtension':
94
94
--
95
- -- * also add it to the Distribution.Simple.X.languageExtensions lists
95
+ -- * also add it to the Distribution.Simple.X.compilerExtensions lists
96
96
-- (where X is each compiler: GHC, UHC, HaskellSuite)
97
97
--
98
98
-- | This represents language extensions beyond a base 'Language' definition
@@ -677,6 +677,9 @@ data KnownExtension =
677
677
-- | Enable data types for which an unlifted or levity-polymorphic result kind is inferred.
678
678
| UnliftedDatatypes
679
679
680
+ -- | Enable syntax for primitive numeric literals, e.g. @3#Int8@
681
+ | ExtendedLiterals
682
+
680
683
-- | Undocumented parsing-related extensions introduced in GHC 7.0.
681
684
| AlternativeLayoutRule
682
685
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ tests = testGroup "Distribution.Utils.Structured"
27
27
-- The difference is in encoding of newtypes
28
28
#if MIN_VERSION_base(4,7,0)
29
29
, testCase " GenericPackageDescription" $
30
- md5Check (Proxy :: Proxy GenericPackageDescription ) 0xa3e9433662ecf0c7a3c26f6d75a53ba1
30
+ md5Check (Proxy :: Proxy GenericPackageDescription ) 0x8d8f340f10a58b8d8a87bf42213dac89
31
31
, testCase " LocalBuildInfo" $
32
- md5Check (Proxy :: Proxy LocalBuildInfo ) 0x91ffcd61bbd83525e8edba877435a031
32
+ md5Check (Proxy :: Proxy LocalBuildInfo ) 0xbb22c3258d3092f31e992bc093d09170
33
33
#endif
34
34
]
35
35
Original file line number Diff line number Diff line change
1
+ synopsis: Add language extension ExtendedLiterals
2
+ packages: Cabal-syntax
3
+ prs: #8992
4
+ significance: significant
5
+
6
+ description: {
7
+
8
+ - adds support for the ExtendedLiterals language extension (GHC proposal #451)
9
+
10
+ }
Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ syn keyword cabalExtension contained
182
182
\ ExplicitNamespaces
183
183
\ ExtendedDefaultRules
184
184
\ ExtensibleRecords
185
+ \ ExtendedLiterals
185
186
\ FieldSelectors
186
187
\ FlexibleContexts
187
188
\ FlexibleInstances
@@ -299,6 +300,7 @@ syn keyword cabalExtension contained
299
300
\ NoDataKinds
300
301
\ NoDatatypeContexts
301
302
\ NoDefaultSignatures
303
+ \ NoDeepSubsumption
302
304
\ NoDeriveAnyClass
303
305
\ NoDeriveDataTypeable
304
306
\ NoDeriveFoldable
@@ -319,6 +321,7 @@ syn keyword cabalExtension contained
319
321
\ NoExplicitForAll
320
322
\ NoExplicitNamespaces
321
323
\ NoExtendedDefaultRules
324
+ \ NoExtendedLiterals
322
325
\ NoExtensibleRecords
323
326
\ NoFieldSelectors
324
327
\ NoFlexibleContexts
@@ -406,6 +409,7 @@ syn keyword cabalExtension contained
406
409
\ NoTransformListComp
407
410
\ NoTupleSections
408
411
\ NoTypeApplications
412
+ \ NoTypeData
409
413
\ NoTypeFamilies
410
414
\ NoTypeFamilyDependencies
411
415
\ NoTypeInType
You can’t perform that action at this time.
0 commit comments