File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,9 @@ import qualified Data.Text.Lazy as L
6161import qualified Graphics.Vty as Vty
6262import qualified Data.Vector as V
6363import System.Environment (getExecutablePath )
64+ #if !IS_WINDOWS
6465import qualified System.Posix.Process as SPP
66+ #endif
6567
6668
6769hiddenTools :: [Tool ]
@@ -500,12 +502,15 @@ install' _ (_, ListResult {..}) = do
500502 forM_ (_viPostInstall =<< vi) $ \ msg -> logInfo msg
501503 case lTool of
502504 GHCup -> do
505+ #if !IS_WINDOWS
503506 up <- liftIO $ fmap (either (const Nothing ) Just )
504507 $ try @ _ @ SomeException $ canonicalizePath (binDir </> " ghcup" <.> exeExt)
505508 when ((normalise <$> up) == Just (normalise ce)) $
506509 -- TODO: track cli arguments of previous invocation
507510 liftIO $ SPP. executeFile ce False [" tui" ] Nothing
511+ #else
508512 logInfo " Please restart 'ghcup' for the changes to take effect"
513+ #endif
509514 _ -> pure ()
510515 pure $ Right ()
511516 VRight (vi, _, _) -> do
Original file line number Diff line number Diff line change @@ -475,7 +475,7 @@ data KeyBindings = KeyBindings
475475 deriving (Show , GHC.Generic )
476476
477477instance NFData KeyBindings
478- #if defined(IS_WINDOWS) || !defined(BRICK)
478+ #if !defined(BRICK)
479479instance NFData Key
480480
481481instance NFData Modifier
You can’t perform that action at this time.
0 commit comments