Skip to content

Commit

Permalink
Have "stack config set" not require a compiler #2852
Browse files Browse the repository at this point in the history
  • Loading branch information
mgsloan committed Dec 17, 2016
1 parent 6cb3e5b commit d0eabec
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/main/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import Control.Exception
import Control.Monad hiding (mapM, forM)
import Control.Monad.IO.Class
import Control.Monad.Logger
import Control.Monad.Reader (ask,local,runReaderT)
import Control.Monad.Reader (local)
import Control.Monad.Trans.Either (EitherT)
import Control.Monad.Writer.Lazy (Writer)
import Data.Attoparsec.Args (parseArgs, EscapingMode (Escaping))
Expand Down Expand Up @@ -835,12 +835,9 @@ dockerCleanupCmd cleanupOpts go@GlobalOpts{..} = do

cfgSetCmd :: ConfigCmd.ConfigCmdSet -> GlobalOpts -> IO ()
cfgSetCmd co go@GlobalOpts{..} =
withBuildConfigAndLock
withMiniConfigAndLock
go
(\_ -> do env <- ask
runReaderT
(cfgCmdSet co)
env)
(cfgCmdSet co)

imgDockerCmd :: (Bool, [Text]) -> GlobalOpts -> IO ()
imgDockerCmd (rebuild,images) go@GlobalOpts{..} = do
Expand Down

0 comments on commit d0eabec

Please sign in to comment.