Skip to content

Commit

Permalink
Use liftA2 qualified to pacify GHC < 9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewthad committed Feb 6, 2024
1 parent 0caa736 commit f50a63a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Revision history for contiguous

## 0.6.4.2 -- 2024-02-06

* Restore support for versions of base that do not export `liftA2`
from the prelude.

## 0.6.4.1 -- 2024-02-05

* Update package metadata.
Expand Down
2 changes: 1 addition & 1 deletion contiguous.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.4
name: contiguous
version: 0.6.4.1
version: 0.6.4.2
homepage: https://github.com/byteverse/contiguous
bug-reports: https://github.com/byteverse/contiguous/issues
author: Andrew Martin
Expand Down
4 changes: 2 additions & 2 deletions src/Data/Primitive/Contiguous.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ itraverse f = \arr ->
then pure (STA unsafeFreeze)
else case index# arr ix of
(# x #) ->
liftA2
A.liftA2
( \b (STA m) -> STA $ \marr -> do
write marr ix b
m marr
Expand Down Expand Up @@ -1330,7 +1330,7 @@ generateM !sz f =
let go !ix =
if ix < sz
then
liftA2
A.liftA2
( \b (STA m) -> STA $ \marr -> do
write marr ix b
m marr
Expand Down

0 comments on commit f50a63a

Please sign in to comment.