@@ -106,21 +106,21 @@ stackTestFromCabal cabalTest = StackTestSuite
106106 }
107107
108108isComponentBuildable :: HasBuildInfo component => component -> Bool
109- isComponentBuildable componentRec = componentRec. buildInfo. sbiBuildable
109+ isComponentBuildable componentRec = componentRec. buildInfo. buildable
110110
111111stackBuildInfoFromCabal :: BuildInfo -> StackBuildInfo
112112stackBuildInfoFromCabal buildInfoV = gatherComponentToolsAndDepsFromCabal
113113 buildInfoV. buildTools
114114 buildInfoV. buildToolDepends
115115 buildInfoV. targetBuildDepends
116116 StackBuildInfo
117- { sbiBuildable = buildInfoV. buildable
118- , sbiOtherModules = buildInfoV. otherModules
117+ { buildable = buildInfoV. buildable
118+ , otherModules = buildInfoV. otherModules
119119 , jsSources = buildInfoV. jsSources
120120 , hsSourceDirs = buildInfoV. hsSourceDirs
121121 , cSources = buildInfoV. cSources
122- , sbiDependency = mempty
123- , sbiUnknownTools = mempty
122+ , dependency = mempty
123+ , unknownTools = mempty
124124 , cppOptions = buildInfoV. cppOptions
125125 , targetBuildDepends = buildInfoV. targetBuildDepends
126126 , options = buildInfoV. options
@@ -171,23 +171,21 @@ gatherComponentToolsAndDepsFromCabal legacyBuildTools buildTools targetDeps =
171171 sbi
172172 (Cabal. ExeDependency pName (Cabal. mkUnqualComponentName exeName) range)
173173 Nothing -> sbi
174- {sbiUnknownTools = Set. insert (pack exeName) sbi. sbiUnknownTools }
174+ { unknownTools = Set. insert (pack exeName) sbi. unknownTools }
175175 processExeDependency sbi exeDep@ (Cabal. ExeDependency pName _ _)
176176 | isPreInstalledPackages pName = sbi
177177 | otherwise = sbi
178- { sbiDependency =
179- Map. insert pName (cabalExeToStackDep exeDep) sbi. sbiDependency
178+ { dependency =
179+ Map. insert pName (cabalExeToStackDep exeDep) sbi. dependency
180180 }
181181 processDependency sbi dep@ (Cabal. Dependency pName _ _) = sbi
182- { sbiDependency =
183- Map. insert pName (cabalToStackDep dep) sbi. sbiDependency
184- }
182+ { dependency = Map. insert pName (cabalToStackDep dep) sbi. dependency }
185183
186184componentDependencyMap ::
187- (HasField " buildInfo" r1 r2 , HasField " sbiDependency " r2 a )
185+ (HasField " buildInfo" r1 r2 , HasField " dependency " r2 a )
188186 => r1
189187 -> a
190- componentDependencyMap component = component. buildInfo. sbiDependency
188+ componentDependencyMap component = component. buildInfo. dependency
191189
192190-- | A hard-coded map for tool dependencies. If a dependency is within this map
193191-- it's considered "known" (the exe will be found at the execution stage). The
@@ -201,7 +199,7 @@ isKnownLegacyExe input = case input of
201199 " greencard" -> justPck " greencard"
202200 " c2hs" -> justPck " c2hs"
203201 " hscolour" -> justPck " hscolour"
204- " hspec-iscover " -> justPck " hspec-discover"
202+ " hspec-discover " -> justPck " hspec-discover"
205203 " hsx2hs" -> justPck " hsx2hs"
206204 " gtk2hsC2hs" -> justPck " gtk2hs-buildtools"
207205 " gtk2hsHookGenerator" -> justPck " gtk2hs-buildtools"
0 commit comments