Skip to content

Commit

Permalink
Update Data/ByteString/Internal/Pure.hs
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Craven <[email protected]>
  • Loading branch information
hsyl20 and clyring authored Jan 16, 2024
1 parent f9b2775 commit d0150ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data/ByteString/Internal/Pure.hs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ find_maximum !m !p !plast = do
else find_maximum c' (plusPtr p 1) plast

findMinimum :: Ptr Word8 -> Int -> IO Word8
findMinimum !p !n = find_minimum maxBound p (plusPtr p (n - 1))
findMinimum !p !n = assert (n > 0) $ find_minimum maxBound p (plusPtr p (n - 1))

Check failure on line 123 in Data/ByteString/Internal/Pure.hs

View workflow job for this annotation

GitHub Actions / pure-haskell

Variable not in scope: assert :: Bool -> IO Word8 -> IO Word8

find_minimum :: Word8 -> Ptr Word8 -> Ptr Word8 -> IO Word8
find_minimum !m !p !plast = do
Expand Down

0 comments on commit d0150ce

Please sign in to comment.