@@ -23,17 +23,14 @@ import           Ide.Plugin.Cabal.LicenseSuggest                (licenseNames)
2323--  Completion Data
2424--  ----------------------------------------------------------------
2525
26- supportedCabalVersions  ::  [CabalSpecVersion ]
27- supportedCabalVersions =  [CabalSpecV2_2  ..  maxBound ]
28- 
2926--  |  Keyword for cabal version; required to be the top line in a cabal file 
3027cabalVersionKeyword  ::  Map  KeyWordName  Completer 
3128cabalVersionKeyword = 
3229  Map. singleton " cabal-version:" $ 
3330    constantCompleter $ 
3431      --  We only suggest cabal versions newer than 2.2
3532      --  since we don't recommend using older ones.
36-       map  (T. pack .  showCabalSpecVersion) supportedCabalVersions 
33+       map  (T. pack .  showCabalSpecVersion) [ CabalSpecV2_2   ..   maxBound ] 
3734
3835--  |  Top level keywords of a cabal file. 
3936-- 
@@ -90,6 +87,7 @@ libraryFields =
9087      (" visibility:" " private" " public" 
9188      (" reexported-modules:" 
9289      (" signatures:" 
90+       (" autogen-modules:" 
9391      (" other-modules:" 
9492    ]
9593
@@ -98,13 +96,15 @@ executableFields =
9896  Map. fromList
9997    [ (" main-is:" 
10098      (" scope:" " public" " private" 
99+       (" autogen-modules:" 
101100      (" other-modules:" 
102101    ]
103102
104103testSuiteFields  ::  Map  KeyWordName  Completer 
105104testSuiteFields = 
106105  Map. fromList
107106    [ (" type:" " exitcode-stdio-1.0" " detailed-0.9" 
107+       (" autogen-modules:" 
108108      (" main-is:" 
109109      (" other-modules:" 
110110    ]
@@ -113,6 +113,7 @@ benchmarkFields :: Map KeyWordName Completer
113113benchmarkFields = 
114114  Map. fromList
115115    [ (" type:" 
116+       (" autogen-modules:" 
116117      (" main-is:" 
117118      (" other-modules:" 
118119    ]
@@ -165,8 +166,7 @@ flagFields =
165166libExecTestBenchCommons  ::  Map  KeyWordName  Completer 
166167libExecTestBenchCommons = 
167168  Map. fromList
168-     [ (" import:" 
169-       (" build-depends:" 
169+     [ (" build-depends:" 
170170      (" hs-source-dirs:" 
171171      (" default-extensions:" 
172172      (" other-extensions:" 
@@ -181,6 +181,7 @@ libExecTestBenchCommons =
181181      (" ghcjs-prof-options:" 
182182      (" ghcjs-shared-options:" 
183183      (" includes:" 
184+       (" autogen-includes:" 
184185      (" install-includes:" 
185186      (" include-dirs:" 
186187      (" c-sources:" 
@@ -264,3 +265,6 @@ weightedLicenseNames =
264265
265266ghcOptions  ::  [T. Text
266267ghcOptions =  map  T. pack $  flagsForCompletion False 
268+ 
269+ supportedCabalVersions  ::  [CabalSpecVersion ]
270+ supportedCabalVersions =  [CabalSpecV2_2  ..  maxBound ]
0 commit comments