Skip to content

Support for containers-0.8. #17

Closed
Closed
@jonathanknowles

Description

@jonathanknowles

Version 0.8 of the containers package has been released. 🎉

The nonempty-containers package currently has no upper bound on containers:

build-depends:
aeson
, base >=4.9 && <5
, comonad
, containers >=0.5.9

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions