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