stack-3.7.1: src/Stack/Update.hs
{-# LANGUAGE NoImplicitPrelude #-}
{-|
Module : Stack.Update
Description : Functions related to Stack's @update@ command.
License : BSD-3-Clause
Functions related to Stack's @update@ command.
-}
module Stack.Update
( updateCmd
) where
import Stack.Prelude
import Stack.Runners ( ShouldReexec (..), withConfig )
import Stack.Types.Runner ( Runner )
-- | Function underlying the @stack update@ command. Update the package index.
updateCmd :: () -> RIO Runner ()
updateCmd () = withConfig NoReexec (void (updateHackageIndex Nothing))