Skip to content

Commit

Permalink
Fix tests with GHC 9.8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Oct 19, 2023
1 parent 9ab7c65 commit 114496c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/bytestring-tests/Properties/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -632,9 +632,11 @@ splitWith f ys = go [] ys
| f x = reverse acc : go [] xs
| otherwise = go (x : acc) xs

#if !MIN_VERSION_base(4, 19, 0)
unsnoc :: [a] -> Maybe ([a], a)
unsnoc [] = Nothing
unsnoc xs = Just (init xs, last xs)
#endif

-- | Total conversion to char.
word8ToChar :: Word8 -> Char
Expand Down

0 comments on commit 114496c

Please sign in to comment.