diff options
author | pacien | 2019-12-31 00:16:29 +0100 |
---|---|---|
committer | pacien | 2019-12-31 00:16:29 +0100 |
commit | 9d2b6cf4641cfff08ad556d3a7b24d4d63464eb5 (patch) | |
tree | 374b88146cb32ea2b5ab8e8b7d613d16d65f0059 /compiler/src/Compiler.hs | |
parent | d0962ef2dea7e8a0c25ca8fdbc55fcbafeeb2f79 (diff) | |
download | ldgallery-9d2b6cf4641cfff08ad556d3a7b24d4d63464eb5.tar.gz |
compiler: populate the properties field in the index
GitHub: closes #8
Diffstat (limited to 'compiler/src/Compiler.hs')
-rw-r--r-- | compiler/src/Compiler.hs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/compiler/src/Compiler.hs b/compiler/src/Compiler.hs index 048afc1..f15192f 100644 --- a/compiler/src/Compiler.hs +++ b/compiler/src/Compiler.hs | |||
@@ -37,7 +37,7 @@ import qualified Data.Aeson as JSON | |||
37 | 37 | ||
38 | import Config | 38 | import Config |
39 | import Input (decodeYamlFile, readInputTree) | 39 | import Input (decodeYamlFile, readInputTree) |
40 | import Resource (GalleryItem, buildGalleryTree, galleryCleanupResourceDir) | 40 | import Resource (buildGalleryTree, galleryCleanupResourceDir) |
41 | import Files | 41 | import Files |
42 | ( FileName | 42 | ( FileName |
43 | , FSNode(..) | 43 | , FSNode(..) |
@@ -48,11 +48,8 @@ import Files | |||
48 | , ensureParentDir | 48 | , ensureParentDir |
49 | , isOutdated ) | 49 | , isOutdated ) |
50 | import Processors | 50 | import Processors |
51 | ( dirFileProcessor | 51 | ( dirFileProcessor, itemFileProcessor, thumbnailFileProcessor |
52 | , itemFileProcessor | 52 | , skipCached, withCached ) |
53 | , thumbnailFileProcessor | ||
54 | , skipCached | ||
55 | , withCached ) | ||
56 | 53 | ||
57 | 54 | ||
58 | writeJSON :: ToJSON a => FileName -> a -> IO () | 55 | writeJSON :: ToJSON a => FileName -> a -> IO () |