@@ -197,9 +197,9 @@ loadYamlSettings runTimeFiles compileValues envUsage = do
197197 UseCustomEnv env -> return $ applyEnvValue False env value'
198198 RequireCustomEnv env -> return $ applyEnvValue True env value'
199199
200− case fromJSON value of
201− Error s -> error $ "Could not convert to expected type: " ++ s
202− Success settings -> return settings
200+ case Y.parseEither parseJSON value of
201+ Left s -> error $ "Could not convert to expected type: " ++ s
202+ Right settings -> return settings
203203
204204-- | Same as @loadYamlSettings@, but get the list of runtime config files from
205205-- the command line arguments.