From 61d3376a4598b89f5ac1329ca215374ec358be3c Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 23 Feb 2017 16:24:20 +0100 Subject: [PATCH] Restore "Fetching..." message with openURL if --verbose. --- src/Text/Pandoc/Class.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Text/Pandoc/Class.hs b/src/Text/Pandoc/Class.hs index 7f96da870..887c7eeec 100644 --- a/src/Text/Pandoc/Class.hs +++ b/src/Text/Pandoc/Class.hs @@ -229,7 +229,9 @@ instance PandocMonad PandocIO where getCurrentTimeZone = liftIO IO.getCurrentTimeZone newStdGen = liftIO IO.newStdGen newUniqueHash = hashUnique <$> (liftIO IO.newUnique) - openURL u = liftIOError IO.openURL u + openURL u = do + report $ Fetching u + liftIOError IO.openURL u readFileLazy s = liftIOError BL.readFile s readFileStrict s = liftIOError B.readFile s readDataFile mfp fname = liftIOError (IO.readDataFile mfp) fname