clang-pure
clang-pure copied to clipboard
Build error
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 > | ^^^^^^^^^^^^^^^^^^^^^^^^^
Hi, could you share what version of GHC/Stack you're using?
stack
Version 2.9.3 aarch64
Compiled with:
- Cabal-3.6.3.0
And which snapshot?
resolver:
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/6.yaml
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,
-
StandaloneKindSignatures, -
build-depends: base >=4.8 && <5, contravariant >= 1.3.3, @@ -58,6 +60,7 @@ library bytestring >= 0.10.6, stm >= 2.4.4, singletons >= 2.0.1,TypeOperators, FlexibleContexts -
hs-source-dirs: src/singletons-th >= 3.2, microlens >= 0.4.2.1, microlens-contra >= 0.1.0.1