summaryrefslogtreecommitdiff
path: root/app/SlackBuilder
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2023-09-21 23:51:02 +0200
committerEugen Wissner <belka@caraus.de>2023-09-21 23:51:02 +0200
commita7114618c1290b00745db69ef0e60b2e848a662d (patch)
tree40f49cf43c7f443b5e01505d36474c0f3514ba48 /app/SlackBuilder
parent77c9a2ab54b697f37e21b76c1fd82fc42dc4792e (diff)
downloadslackbuilder-a7114618c1290b00745db69ef0e60b2e848a662d.tar.gz
Combine test and application dependencies
Diffstat (limited to 'app/SlackBuilder')
-rw-r--r--app/SlackBuilder/Package.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/SlackBuilder/Package.hs b/app/SlackBuilder/Package.hs
index cc3ea42..a447609 100644
--- a/app/SlackBuilder/Package.hs
+++ b/app/SlackBuilder/Package.hs
@@ -63,6 +63,7 @@ instance Show DownloadTemplate
where
show (DownloadTemplate components) = concatMap show components
+-- | Replaces placeholders in the URL template with the given version.
renderDownloadWithVersion :: MonadThrow m => DownloadTemplate -> Text -> m URI
renderDownloadWithVersion (DownloadTemplate components) version =
URI.mkURI $ foldr f "" components