@@ -48,6 +48,7 @@ hash :: [Word8] -> (Word32, Word32, Word32, Word32)
49 = case map f $ chunk 4 $ MD5.hash bytes of
49 = case map f $ chunk 4 $ MD5.hash bytes of
50 w1:w2:w3:w4:_ -> (w1, w2, w3, w4)
50 w1:w2:w3:w4:_ -> (w1, w2, w3, w4)
51+ _ -> error "Data.UUID.V3.hash: fatal error"
52 where f [b1, b2, b3, b4]
53 where f [b1, b2, b3, b4]
@@ -56,9 +57,10 @@ hash bytes
56 , fromIntegral b2 `shiftL` 16
57 , fromIntegral b2 `shiftL` 16
57 , fromIntegral b1 `shiftL` 24
58 , fromIntegral b1 `shiftL` 24
60+ f _ = error "Data.UUID.V3.hash: fatal error"
60chunk :: Int -> [a] -> [[a]]
62chunk :: Int -> [a] -> [[a]]
61−chunk n xs = go n [] xs
63+chunk n = go n []
62 where go _ [] [] = []
64 where go _ [] [] = []
63 go _ ys [] = reverse ys:[]
65 go _ ys [] = reverse ys:[]
64 go 0 ys xs = reverse ys:go n [] xs
66 go 0 ys xs = reverse ys:go n [] xs