Only unzip what we use
This commit is contained in:
parent
51c7c1977f
commit
fe87351976
|
@ -6,7 +6,7 @@ import DependencyGenerator
|
|||
handleRecipeDir :: Token FilePath -> Token Template -> Token FilePath -> DepGenM ()
|
||||
handleRecipeDir outputDir template dir = do
|
||||
dirContents <- listDirectory dir
|
||||
(bases, exts) <- unzipDepGenM (mapDepGenM fileComponents dirContents)
|
||||
exts <- unzipSndDepGenM (mapDepGenM fileComponents dirContents)
|
||||
areImageFilenames <- mapDepGenM isImageExtension exts
|
||||
imageFilenames <- filterDepGenM areImageFilenames dirContents
|
||||
convertedImageFilenames <- mapDepGenM convertedImageFilename imageFilenames
|
||||
|
|
Loading…
Reference in New Issue