summaryrefslogtreecommitdiff
path: root/Hero/Pack.hs
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-07-25 15:40:24 -0700
committerBen Sima <ben@bsima.me>2020-07-25 15:40:24 -0700
commit2f32da5812583c6675bdc9ff88a3a3d5cefbb82f (patch)
tree1eb7b49b3b45a7a410cf8a82d97094412ef6c17c /Hero/Pack.hs
parent22139c06244d224f543dc6c5c38e8f05cddc4b51 (diff)
hero: rename Assets -> Pack and lint fixes
Diffstat (limited to 'Hero/Pack.hs')
-rw-r--r--Hero/Pack.hs16
1 files changed, 16 insertions, 0 deletions
diff --git a/Hero/Pack.hs b/Hero/Pack.hs
new file mode 100644
index 0000000..d5c3a35
--- /dev/null
+++ b/Hero/Pack.hs
@@ -0,0 +1,16 @@
+{-# LANGUAGE OverloadedStrings #-}
+{-# LANGUAGE NoImplicitPrelude #-}
+
+-- | A module to wrap the CDN and provide convient helper functions to assets.
+module Hero.Pack where
+
+import Protolude
+
+cdnEdge :: Text
+cdnEdge = "https://heroverse.sfo2.cdn.digitaloceanspaces.com"
+
+demo :: Text
+demo = cdnEdge <> "/old-assets/demo/"
+
+icon :: Text
+icon = cdnEdge <> "/icons/"