Skip to content

Commit d0eabec

Browse files
committed
Have "stack config set" not require a compiler #2852
1 parent 6cb3e5b commit d0eabec

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/main/Main.hs

+3-6
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import Control.Exception
1818
import Control.Monad hiding (mapM, forM)
1919
import Control.Monad.IO.Class
2020
import Control.Monad.Logger
21-
import Control.Monad.Reader (ask,local,runReaderT)
21+
import Control.Monad.Reader (local)
2222
import Control.Monad.Trans.Either (EitherT)
2323
import Control.Monad.Writer.Lazy (Writer)
2424
import Data.Attoparsec.Args (parseArgs, EscapingMode (Escaping))
@@ -835,12 +835,9 @@ dockerCleanupCmd cleanupOpts go@GlobalOpts{..} = do
835835

836836
cfgSetCmd :: ConfigCmd.ConfigCmdSet -> GlobalOpts -> IO ()
837837
cfgSetCmd co go@GlobalOpts{..} =
838-
withBuildConfigAndLock
838+
withMiniConfigAndLock
839839
go
840-
(\_ -> do env <- ask
841-
runReaderT
842-
(cfgCmdSet co)
843-
env)
840+
(cfgCmdSet co)
844841

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

0 commit comments

Comments
 (0)