@@ -28,7 +28,7 @@ import GHCup.Brick.BrickState
2828import GHCup.Brick.Widgets.SectionList
2929import qualified GHCup.Brick.Widgets.Menus.Context as ContextMenu
3030import GHCup.Brick.Widgets.Navigation (BrickInternalState )
31- import qualified GHCup.Brick.Widgets.Menus.AdvanceInstall as AdvanceInstall
31+ import qualified GHCup.Brick.Widgets.Menus.AdvancedInstall as AdvancedInstall
3232import qualified GHCup.Brick.Widgets.Menus.CompileGHC as CompileGHC
3333import GHCup.Brick.Widgets.Menu (MenuKeyBindings (.. ))
3434
@@ -182,19 +182,19 @@ withIOAction action = do
182182 Left err -> throwIO $ userError err
183183
184184installWithOptions :: (MonadReader AppState m , MonadIO m , MonadThrow m , MonadFail m , MonadMask m , MonadUnliftIO m , Alternative m )
185- => AdvanceInstall . InstallOptions
185+ => AdvancedInstall . InstallOptions
186186 -> (Int , ListResult )
187187 -> m (Either String () )
188188installWithOptions opts (_, ListResult {.. }) = do
189189 AppState { ghcupInfo = GHCupInfo { _ghcupDownloads = dls }} <- ask
190190 let
191- misolated = opts ^. AdvanceInstall . isolateDirL
192- shouldIsolate = maybe GHCupInternal IsolateDir (opts ^. AdvanceInstall . isolateDirL)
193- shouldForce = opts ^. AdvanceInstall . forceInstallL
194- shouldSet = opts ^. AdvanceInstall . instSetL
195- extraArgs = opts ^. AdvanceInstall . addConfArgsL
196- installTargets = opts ^. AdvanceInstall . installTargetsL
197- v = fromMaybe (GHCTargetVersion lCross lVer) (opts ^. AdvanceInstall . instVersionL)
191+ misolated = opts ^. AdvancedInstall . isolateDirL
192+ shouldIsolate = maybe GHCupInternal IsolateDir (opts ^. AdvancedInstall . isolateDirL)
193+ shouldForce = opts ^. AdvancedInstall . forceInstallL
194+ shouldSet = opts ^. AdvancedInstall . instSetL
195+ extraArgs = opts ^. AdvancedInstall . addConfArgsL
196+ installTargets = opts ^. AdvancedInstall . installTargetsL
197+ v = fromMaybe (GHCTargetVersion lCross lVer) (opts ^. AdvancedInstall . instVersionL)
198198 toolV = _tvVersion v
199199 let run =
200200 runResourceT
@@ -244,7 +244,7 @@ installWithOptions opts (_, ListResult {..}) = do
244244 lift $ logWarn
245245 " ...waiting for 5 seconds, you can still abort..."
246246 liftIO $ threadDelay 5000000 -- give the user a sec to intervene
247- case opts ^. AdvanceInstall . instBindistL of
247+ case opts ^. AdvancedInstall . instBindistL of
248248 Nothing -> do
249249 liftE $
250250 runBothE'
@@ -272,7 +272,7 @@ installWithOptions opts (_, ListResult {..}) = do
272272 lift $ logWarn
273273 " ...waiting for 5 seconds, you can still abort..."
274274 liftIO $ threadDelay 5000000 -- give the user a sec to intervene
275- case opts ^. AdvanceInstall . instBindistL of
275+ case opts ^. AdvancedInstall . instBindistL of
276276 Nothing -> do
277277 liftE $
278278 runBothE'
@@ -301,7 +301,7 @@ installWithOptions opts (_, ListResult {..}) = do
301301 lift $ logWarn
302302 " ...waiting for 5 seconds, you can still abort..."
303303 liftIO $ threadDelay 5000000 -- give the user a sec to intervene
304- case opts ^. AdvanceInstall . instBindistL of
304+ case opts ^. AdvancedInstall . instBindistL of
305305 Nothing -> do
306306 liftE $
307307 runBothE'
@@ -321,7 +321,7 @@ installWithOptions opts (_, ListResult {..}) = do
321321
322322 Stack -> do
323323 let vi = getVersionInfo v Stack dls
324- case opts ^. AdvanceInstall . instBindistL of
324+ case opts ^. AdvancedInstall . instBindistL of
325325 Nothing -> do
326326 liftE $
327327 runBothE'
@@ -363,7 +363,7 @@ installWithOptions opts (_, ListResult {..}) = do
363363
364364install' :: (MonadReader AppState m , MonadIO m , MonadThrow m , MonadFail m , MonadMask m , MonadUnliftIO m , Alternative m )
365365 => (Int , ListResult ) -> m (Either String () )
366- install' = installWithOptions (AdvanceInstall . InstallOptions Nothing False Nothing Nothing False [] " install" )
366+ install' = installWithOptions (AdvancedInstall . InstallOptions Nothing False Nothing Nothing False [] " install" )
367367
368368set' :: (MonadReader AppState m , MonadIO m , MonadThrow m , MonadFail m , MonadMask m , MonadUnliftIO m , Alternative m )
369369 => (Int , ListResult )
@@ -759,7 +759,7 @@ keyHandlers KeyBindings {..} =
759759 , (bUp, const " Up" , Common. zoom appState moveUp)
760760 , (bDown, const " Down" , Common. zoom appState moveDown)
761761 , (KeyCombination (Vty. KChar ' h' ) [] , const " help" , mode .= KeyInfo )
762- , (KeyCombination Vty. KEnter [] , const " advance options" , createMenuforTool )
762+ , (KeyCombination Vty. KEnter [] , const " advanced options" , createMenuforTool )
763763 ]
764764 where
765765 createMenuforTool = do
0 commit comments