summaryrefslogtreecommitdiff
path: root/lib/SlackBuilder/Package.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SlackBuilder/Package.hs')
-rw-r--r--lib/SlackBuilder/Package.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/SlackBuilder/Package.hs b/lib/SlackBuilder/Package.hs
index a447609..bd53447 100644
--- a/lib/SlackBuilder/Package.hs
+++ b/lib/SlackBuilder/Package.hs
@@ -68,8 +68,8 @@ renderDownloadWithVersion :: MonadThrow m => DownloadTemplate -> Text -> m URI
renderDownloadWithVersion (DownloadTemplate components) version =
URI.mkURI $ foldr f "" components
where
- f (StaticPlaceholder staticPlaceholder) accumulator = accumulator <> staticPlaceholder
- f VersionPlaceholder accumulator = accumulator <> version
+ f (StaticPlaceholder staticPlaceholder) = (staticPlaceholder <>)
+ f VersionPlaceholder = (version <>)
-- | Function used to get the latest version of a source.
data Updater = Updater (SlackBuilderT (Maybe Text)) DownloadTemplate