0

I'm new to using c2hs and having this issue.

I'm not sure how to start debugging this, and haven't found anything with a Google search or by looking through the issues on GitHub.

Where should I begin, and what are some resources that could help?

Thanks in advance.

Paul Young
  • 1,489
  • 1
  • 15
  • 34

1 Answers1

0

As Dave Lee pointed out, it's possible to pass use the --c2hs-options flag like so:

cabal ... --c2hs-options="-d trace"

I couldn't figure out how to make this work by adding to the .cabal or stack.yaml files, or by passing it on the command like in conjunction with stack build so just copied the command from the output of stack build and manually ran it with the additional flag:

/Users/py/projects/jspahrsummers/Arbiter/bindings/haskell/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/setup/setup --builddir=.stack-work/dist/x86_64-osx/Cabal-1.24.0.0 build lib:arbiter --ghc-options " -ddump-hi -ddump-to-file" --c2hs-options="-d trace"
Paul Young
  • 1,489
  • 1
  • 15
  • 34