We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 794c550 commit 20fee47Copy full SHA for 20fee47
cardano-cli/src/Cardano/CLI/Read.hs
@@ -1107,7 +1107,9 @@ readCostModels sbe (File fp) = do
1107
bytes <- handleIOExceptT (CostModelsErrorReadFile . FileIOError fp) $ LBS.readFile fp
1108
costModels <- firstExceptT (CostModelsErrorJSONDecode fp) . except $ Aeson.eitherDecode bytes
1109
when (null $ fromAlonzoCostModels costModels) $ throwE $ CostModelsErrorEmpty fp
1110
- forM_ (allValues @L.Language) $ checkCostModelSize costModels
+ forM_ (allValues @L.Language) $ \lg -> do
1111
+ liftIO $ putStrLn $ "Checking " ++ show lg
1112
+ checkCostModelSize costModels lg
1113
return costModels
1114
where
1115
checkCostModelSize :: L.CostModels -> L.Language -> ExceptT CostModelsError IO ()
0 commit comments