chpatrick / clang-pure

Easy C++ code analysis with pure Haskell
Apache License 2.0
35 stars 20 forks source link

Build error #24

Open Ckaf opened 1 year ago

Ckaf commented 1 year ago

Hi, I'm trying to build clang-pure into my project and I get this:

clang-pure  > /private/var/folders/gt/vldsywv513jgcg3vf4ynfyw40000gn/T/stack-3c9bb5133b4445a3/clang-pure-0.2.0.6/src/Language/C/Clang/Internal/Types.hs:25:1: error:
clang-pure  >     Could not find module ‘Data.Singletons.TH’
clang-pure  >     Perhaps you meant
clang-pure  >       Data.Singletons (from singletons-3.0.1)
clang-pure  >       Data.Singletons.Sigma (from singletons-3.0.1)
clang-pure  >     Use -v (or `:set -v` in ghci) to see a list of the files searched for.
clang-pure  >    |
clang-pure  > 25 | import Data.Singletons.TH
clang-pure  >    | ^^^^^^^^^^^^^^^^^^^^^^^^^
chpatrick commented 1 year ago

Hi, could you share what version of GHC/Stack you're using?

Ckaf commented 1 year ago

stack

Version 2.9.3 aarch64
Compiled with:
- Cabal-3.6.3.0
chpatrick commented 1 year ago

And which snapshot?

Ckaf commented 1 year ago
resolver:
  url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/6.yaml
Merivuokko commented 1 year ago

I also had build failures. I use Cabal 3.10 and GHC 9.6. I was able to get this building again with the following patch – a few unused import warnings remain:

diff --git a/clang-pure.cabal b/clang-pure.cabal index 837b271..3b37d0e 100644 --- a/clang-pure.cabal +++ b/clang-pure.cabal @@ -48,6 +48,8 @@ library LambdaCase, NamedFieldPuns, StandaloneDeriving,