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 authored and borsboom committed Dec 18, 2016
1 parent 76b4c16 commit 4ce325e
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, asks,local,runReaderT)
import Control.Monad.Reader (asks, local)
import Control.Monad.Trans.Either (EitherT)
import Control.Monad.Writer.Lazy (Writer)
import Data.Attoparsec.Args (parseArgs, EscapingMode (Escaping))
Expand Down Expand Up @@ -836,12 +836,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 4ce325e

Please sign in to comment.