remove read of the heads
and one tail Removed head from Utility.PartialPrelude in order to avoid the build warning with recent ghc versions as well.
This commit is contained in:
parent
10216b44d2
commit
4ca3d1d584
12 changed files with 32 additions and 42 deletions
|
@ -107,9 +107,9 @@ mergeFile info file hashhandle h = case S8.words info of
|
|||
- generating new content.
|
||||
-}
|
||||
calcMerge :: [(Ref, [L8.ByteString])] -> Either Ref [L8.ByteString]
|
||||
calcMerge shacontents
|
||||
| null reusable = Right new
|
||||
| otherwise = Left $ fst $ Prelude.head reusable
|
||||
calcMerge shacontents = case reusable of
|
||||
[] -> Right new
|
||||
(r:_) -> Left $ fst r
|
||||
where
|
||||
reusable = filter (\c -> sorteduniq (snd c) == new) shacontents
|
||||
new = sorteduniq $ concat $ map snd shacontents
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue