diff options
Diffstat (limited to 'compiler/src/Gallery.hs')
-rw-r--r-- | compiler/src/Gallery.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/src/Gallery.hs b/compiler/src/Gallery.hs index f12eddb..1fa4036 100644 --- a/compiler/src/Gallery.hs +++ b/compiler/src/Gallery.hs | |||
@@ -23,7 +23,7 @@ | |||
23 | #-} | 23 | #-} |
24 | 24 | ||
25 | module Gallery | 25 | module Gallery |
26 | ( GalleryItem(..), buildGalleryTree | 26 | ( GalleryItem(..), buildGallery |
27 | ) where | 27 | ) where |
28 | 28 | ||
29 | 29 | ||
@@ -128,3 +128,7 @@ buildGalleryTree (DirResource dirItems path@(dirname:_) thumbnail) = | |||
128 | 128 | ||
129 | unique :: Ord a => [a] -> [a] | 129 | unique :: Ord a => [a] -> [a] |
130 | unique = Set.toList . Set.fromList | 130 | unique = Set.toList . Set.fromList |
131 | |||
132 | buildGallery :: String -> ResourceTree -> GalleryItem | ||
133 | buildGallery galleryName resourceTree = | ||
134 | (buildGalleryTree resourceTree) { title = galleryName } | ||