summaryrefslogtreecommitdiff
path: root/hadrian/src/Hadrian/Oracles/TextFile.hs
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-09-22 14:13:09 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-09-28 01:53:36 -0400
commit219f7f5060e64f5f88e65019daa1811342e8b8af (patch)
tree49e06af76425dc2547f6e94b275a29d295b0b42a /hadrian/src/Hadrian/Oracles/TextFile.hs
parent1935c42ffb2db800c03ed6b3876eee27a96e9b69 (diff)
downloadhaskell-219f7f5060e64f5f88e65019daa1811342e8b8af.tar.gz
hadrian: Remove deprecated tracing functions
Diffstat (limited to 'hadrian/src/Hadrian/Oracles/TextFile.hs')
-rw-r--r--hadrian/src/Hadrian/Oracles/TextFile.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/hadrian/src/Hadrian/Oracles/TextFile.hs b/hadrian/src/Hadrian/Oracles/TextFile.hs
index ae8182e0dd..c36b3977bc 100644
--- a/hadrian/src/Hadrian/Oracles/TextFile.hs
+++ b/hadrian/src/Hadrian/Oracles/TextFile.hs
@@ -96,13 +96,13 @@ textFileOracle :: Rules ()
textFileOracle = do
kv <- newCache $ \file -> do
need [file]
- putLoud $ "| KeyValue oracle: reading " ++ quote file ++ "..."
+ putVerbose $ "| KeyValue oracle: reading " ++ quote file ++ "..."
liftIO $ readConfigFile file
void $ addOracleCache $ \(KeyValue (file, key)) -> Map.lookup key <$> kv file
kvs <- newCache $ \file -> do
need [file]
- putLoud $ "| KeyValues oracle: reading " ++ quote file ++ "..."
+ putVerbose $ "| KeyValues oracle: reading " ++ quote file ++ "..."
contents <- map words <$> readFileLines file
return $ Map.fromList [ (key, values) | (key:values) <- contents ]
void $ addOracleCache $ \(KeyValues (file, key)) -> Map.lookup key <$> kvs file