We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b523207 commit 92d3141Copy full SHA for 92d3141
src/Stack/ConfigCmd.hs
@@ -159,12 +159,9 @@ cfgReadProject scope = do
159
(configFilePath, yamlConfig) <- cfgRead scope
160
let parser = parseProjectAndConfigMonoid (parent configFilePath)
161
case Yaml.parseEither parser yamlConfig of
162
- Left err -> do
163
- logError . display $ T.pack err
164
- return Nothing
165
- Right (WithJSONWarnings res _warnings) -> do
166
- ProjectAndConfigMonoid project _ <- liftIO res
167
- return $ Just project
+ Left err -> logError (display $ T.pack err) >> return Nothing
+ Right (WithJSONWarnings res _warnings) -> liftIO res >>=
+ \(ProjectAndConfigMonoid project _) -> return $ Just project
168
169
cfgCmdDumpProject :: (HasConfig env, HasLogFunc env) => ConfigCmdDumpProject -> RIO env ()
170
cfgCmdDumpProject (ConfigCmdDumpProject dumpFormat) = do
0 commit comments