Closed
Description
Version 0.8
of the containers
package has been released. 🎉
The nonempty-containers
package currently has no upper bound on containers
:
nonempty-containers/nonempty-containers.cabal
Lines 53 to 57 in de9ba5c
However, when trying to build with containers-0.8
, compilation fails with:
$ cabal build all --constraint=containers==0.8 --allow-newer=containers
Building library for nonempty-containers-0.3.4.5...
[ 1 of 12] Compiling Data.IntMap.NonEmpty.Internal ( src/Data/IntMap/NonEmpty/Internal.hs, /home/jsk/projects/jonathanknowles/nonempty-containers/dist-newstyle/build/x86_64-linux/ghc-9.10.1/nonempty-containers-0.3.4.5/build/Data/IntMap/NonEmpty/Internal.o, /home/jsk/projects/jonathanknowles/nonempty-containers/dist-newstyle/build/x86_64-linux/ghc-9.10.1/nonempty-containers-0.3.4.5/build/Data/IntMap/NonEmpty/Internal.dyn_o ) [Source file changed]
src/Data/IntMap/NonEmpty/Internal.hs:723:9: error: [GHC-27346]
• The data constructor ‘Bin’ should have 3 arguments, but has been given 4
• In the pattern: Bin p m l r
In an equation for ‘go’:
go (Bin p m l r) = liftA2 (flip (Bin p m)) (go r) (go l)
In an equation for ‘traverseMapWithKey’:
traverseMapWithKey f
= go
where
go Nil = pure Nil
go (Tip k v) = Tip k <$> f k v
go (Bin p m l r) = liftA2 (flip (Bin p m)) (go r) (go l)
|
723 | go (Bin p m l r) = liftA2 (flip (Bin p m)) (go r) (go l)
Metadata
Metadata
Assignees
Labels
No labels