Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax haskell-gi-base constraints #6

Open
emlautarom1 opened this issue Apr 25, 2021 · 0 comments
Open

Relax haskell-gi-base constraints #6

emlautarom1 opened this issue Apr 25, 2021 · 0 comments

Comments

@emlautarom1
Copy link

Currently, I'm unable to build a project without a workaround given the constraints of this package.

My dependencies are as follows:

base ^>=4.13.0.0
array
bytestring
containers
deepseq
filepath
file-embed
ghc-events
gi-cairo
gi-cairo-render
gi-gtk == 3.0.37
gi-gdk
gi-gdkpixbuf
gi-pango
haskell-gi-base
text
temporary
template-haskell
unix

If I try to build my project, I get gi-cairo-renderer == 0.0.1 which fails with the following error:

GI/Cairo/Render/Types.chs:68:34: error:
    Module ‘Data.GI.Base’ does not export ‘BoxedObject(..)’
   |
68 | import Data.GI.Base (ManagedPtr, BoxedObject(..), GType(..))
   | 

This issue is fixed on version 0.1.0, but I can't force this version on my dependencies since there's a conflict with gi-gtk regarding haskell-gi-base:

  • gi-cairo-render 0.1.0 requires haskell-gi-base == 0.24.*
  • gi-gtk 3.0.37 requires haskell-gi-base == 0.25.*.

I'm able to build the project using cabal build --allow-newer, which relaxes the version constraint on haskell-gi-base.

I was wondering if it would be possible to relax this constraint on Hackage, so I don't need to use this workaround.


Building with GHC == 8.8.4, cabal == 3.4.0.0 on Fedora 33 with gtk3-devel == 3.24.28-2.

juhp added a commit to commercialhaskell/stackage that referenced this issue Jun 13, 2021
- add gi-module
- drop gi-cairo-connector and gi-cairo-render (cohomology/gi-cairo-render#6)
  - drop gtk-sni-tray (@IvanMalison)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant