Comments (6)
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.
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.
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.
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.
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.
I think it builds with 8.10.4 now (when pulled from Hackage). Thanks!
from c2hs.
Related Issues (20)
- c2hs paper: Access Forbidden HOT 2
- Syntax error! The symbol `__attribute__' does not fit here. for time.h on OSX HOT 3
- Boolean struct members are incorrectly marshalled HOT 3
- Darwin: The symbol `_9' does not fit here. HOT 1
- pseudo block c and enum, creates wrong line counting
- Release schedule HOT 1
- Loosen bounds on language-c HOT 1
- Lexical error ! The character '#' does not fit here HOT 8
- Hackage tarball lacks tests
- Placeholder: removing `/=` from `Eq` HOT 2
- Haddock comments on enum constructors
- c2hs fails to produce the correct alignment HOT 14
- One more error with macos and time.h HOT 2
- capi calling convention
- Fails on Darwin with "clang: error: no input files"
- Paper Link Broken HOT 1
- _Bool type is broken
- Release a version where `cabal test` succeeds
- The symbol `[' does not fit here.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from c2hs.