summaryrefslogtreecommitdiff
path: root/Utility
diff options
context:
space:
mode:
Diffstat (limited to 'Utility')
-rw-r--r--Utility/Url.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Utility/Url.hs b/Utility/Url.hs
index 90ca74eaf..976fe975d 100644
--- a/Utility/Url.hs
+++ b/Utility/Url.hs
@@ -20,6 +20,7 @@ module Utility.Url (
exists,
UrlInfo(..),
getUrlInfo,
+ assumeUrlExists,
download,
downloadQuiet,
parseURIRelaxed
@@ -104,6 +105,9 @@ data UrlInfo = UrlInfo
, urlSuggestedFile :: Maybe FilePath
}
+assumeUrlExists :: UrlInfo
+assumeUrlExists = UrlInfo True Nothing Nothing
+
{- Checks that an url exists and could be successfully downloaded,
- also returning its size and suggested filename if available. -}
getUrlInfo :: URLString -> UrlOptions -> IO UrlInfo