GithubHelp home page GithubHelp logo

Comments (6)

iko-deleted avatar iko-deleted commented on June 2, 2024 2

you should be able to do something similar with a cabal.project file

i think

source-repository-package
    type: git
    location: https://github.com/haskell/c2hs.git
    tag: 20d3c8dedde83af91c4ac06486bf346316e07285

would work?

from c2hs.

iko-deleted avatar iko-deleted commented on June 2, 2024 1

this works perfectly fine with the version from the repo head; i assume it has already been fixed somewhere

in the meantime i got around this by adding

extra-deps:
- git: https://github.com/haskell/c2hs.git
  commit: 20d3c8dedde83af91c4ac06486bf346316e07285

to my stack.yaml

i assume there's something similar with cabal

from c2hs.

emlautarom1 avatar emlautarom1 commented on June 2, 2024 1

you should be able to do something similar with a cabal.project file

i think

source-repository-package
    type: git
    location: https://github.com/haskell/c2hs.git
    tag: 20d3c8dedde83af91c4ac06486bf346316e07285

would work?

Indeed, this solution works.

For future reference, I'm running GHC 8.8.4, cabal-install 3.2.0, Fedora 33

from c2hs.

iko-deleted avatar iko-deleted commented on June 2, 2024

i getting this as well, attempting to install from stackage lts-11.3

error is slightly different:

c2hs> Configuring c2hs-0.28.3...
c2hs> build
c2hs> Preprocessing executable 'c2hs' for c2hs-0.28.3..
c2hs> Building executable 'c2hs' for c2hs-0.28.3..
c2hs> 
c2hs> /tmp/stack-4cadb4e34aa0e146/c2hs-0.28.3/src/C2HS/C/Names.hs:1:1: error:
c2hs>     File name does not match module name:
c2hs>     Saw: ‘Main’
c2hs>     Expected: ‘C2HS.C.Names’
c2hs>   |
c2hs> 1 | --  C->Haskell Compiler: C name analysis
c2hs>   | ^
c2hs> ```

from c2hs.

emlautarom1 avatar emlautarom1 commented on June 2, 2024

I'm having the same issue but not directly since I'm using gi-cairo-render in a project, which fails to compile since it can't build this dependency.

Any workaround? I'm using cabal, not stack, btw.

from c2hs.

mouse07410 avatar mouse07410 commented on June 2, 2024

I think it builds with 8.10.4 now (when pulled from Hackage). Thanks!

from c2hs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.