Use bind function instead of pattern matching
This commit is contained in:
parent
7234321e8f
commit
4417e33ea9
1 changed files with 1 additions and 4 deletions
|
@ -1039,10 +1039,7 @@ filteredFilesFromArchive zf f =
|
|||
mapMaybe (fileAndBinary zf) (filter f (filesInArchive zf))
|
||||
where
|
||||
fileAndBinary :: Archive -> FilePath -> Maybe (FilePath, BL.ByteString)
|
||||
fileAndBinary a fp =
|
||||
case findEntryByPath fp a of
|
||||
Just e -> Just (fp, fromEntry e)
|
||||
Nothing -> Nothing
|
||||
fileAndBinary a fp = findEntryByPath fp a >>= \e -> Just (fp, fromEntry e)
|
||||
|
||||
---
|
||||
--- Squash blocks into inlines
|
||||
|
|
Loading…
Reference in a new issue