From 9dd271504160b624284dbc438cdc867b6ca0d0e7 Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 5 Jan 2020 16:24:02 +0100 Subject: compiler: enable warnings and fix them GitHub: fixes #9 --- compiler/src/Resource.hs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'compiler/src/Resource.hs') diff --git a/compiler/src/Resource.hs b/compiler/src/Resource.hs index b52522c..c09b77a 100644 --- a/compiler/src/Resource.hs +++ b/compiler/src/Resource.hs @@ -31,8 +31,7 @@ module Resource import Control.Concurrent.ParallelIO.Global (parallel) -import Data.Function ((&)) -import Data.List ((\\), subsequences, sortBy) +import Data.List ((\\), sortBy) import Data.Ord (comparing) import Data.Char (toLower) import Data.Maybe (mapMaybe, fromMaybe) @@ -57,10 +56,7 @@ encodingOptions = JSON.defaultOptions } - type Tag = String -type FileSizeKB = Int - data Resolution = Resolution { width :: Int @@ -147,7 +143,7 @@ buildGalleryTree processDir processItem processThumbnail addDirTag galleryName i where maybeThumbnail :: Maybe Path -> IO (Maybe Path) maybeThumbnail Nothing = return Nothing - maybeThumbnail (Just path) = processThumbnail path + maybeThumbnail (Just thumbnailPath) = processThumbnail thumbnailPath aggregateChildTags :: [GalleryItem] -> [Tag] aggregateChildTags = unique . concatMap (\item -> tags (item::GalleryItem)) -- cgit v1.2.3