Commit 285ed5b9 authored by quasicomputational's avatar quasicomputational
Browse files

Add a Globstar constructor to CabalFeature.

parent 008c0fcb
...@@ -34,6 +34,7 @@ cabalSpecFeatures CabalSpecV2_2 = Set.fromList ...@@ -34,6 +34,7 @@ cabalSpecFeatures CabalSpecV2_2 = Set.fromList
cabalSpecFeatures CabalSpecV2_4 = Set.fromList cabalSpecFeatures CabalSpecV2_4 = Set.fromList
[ Elif [ Elif
, CommonStanzas , CommonStanzas
, Globstar
] ]
cabalSpecSupports :: CabalSpecVersion -> [Int] -> Bool cabalSpecSupports :: CabalSpecVersion -> [Int] -> Bool
...@@ -61,6 +62,9 @@ specHasElif _ = NoElif ...@@ -61,6 +62,9 @@ specHasElif _ = NoElif
data CabalFeature data CabalFeature
= Elif = Elif
| CommonStanzas | CommonStanzas
| Globstar
-- ^ Implemented in #5284. Not actually a change to the parser,
-- as filename patterns are opaque to it currently.
deriving (Eq, Ord, Show, Read, Enum, Bounded, Typeable, Data, Generic) deriving (Eq, Ord, Show, Read, Enum, Bounded, Typeable, Data, Generic)
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
...@@ -72,3 +76,5 @@ data HasElif = HasElif | NoElif ...@@ -72,3 +76,5 @@ data HasElif = HasElif | NoElif
data HasCommonStanzas = HasCommonStanzas | NoCommonStanzas data HasCommonStanzas = HasCommonStanzas | NoCommonStanzas
deriving (Eq, Show) deriving (Eq, Show)
data HasGlobstar = HasGlobstar | NoGlobstar
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment