summaryrefslogtreecommitdiff
path: root/Settings/StaticFiles.hs
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-03-14 01:06:28 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-03-14 01:06:28 +0100
commitd84b462a711ce95593ff05a7581e722562c3835a (patch)
tree41e5af455fea925b2680b29718b24ba2876e803a /Settings/StaticFiles.hs
downloadbar-d84b462a711ce95593ff05a7581e722562c3835a.tar
bar-d84b462a711ce95593ff05a7581e722562c3835a.tar.gz
bar-d84b462a711ce95593ff05a7581e722562c3835a.tar.bz2
bar-d84b462a711ce95593ff05a7581e722562c3835a.tar.xz
bar-d84b462a711ce95593ff05a7581e722562c3835a.zip
Implement old bar.hs
Diffstat (limited to 'Settings/StaticFiles.hs')
-rw-r--r--Settings/StaticFiles.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/Settings/StaticFiles.hs b/Settings/StaticFiles.hs
new file mode 100644
index 0000000..bd29ca3
--- /dev/null
+++ b/Settings/StaticFiles.hs
@@ -0,0 +1,13 @@
1module Settings.StaticFiles where
2
3import Settings (appStaticDir, compileTimeAppSettings)
4import Yesod.EmbeddedStatic (mkEmbeddedStatic, embedDir)
5import Prelude (Bool(..), ($))
6
7#ifdef DEVELOPMENT
8#define DEV_BOOL True
9#else
10#define DEV_BOOL False
11#endif
12
13mkEmbeddedStatic DEV_BOOL "eStatic" [embedDir $ appStaticDir compileTimeAppSettings]