Aditya Siram
Aditya Siram
Could you post your definitions for `Context` and the `t` typedef?
This is unfortunately a limitation of `language-c`. Here is a workaround https://github.com/haskell/c2hs/issues/255
I can't reproduce. Which version are you using? You can get that with `c2hs --version` if installed globally or `stack exec c2hs -- --version` if installed via `stack`.
I was able to reproduce this issue on Windows 10 (but not on Linux). It appears to be an issue with Windows line endings. If I open and save `t1.chs`...
What platform?
What looks weird about it?
I upgraded `c2hs` to `language-c-0.7.0` on a [branch on my fork](https://github.com/deech/c2hs/tree/LanguageCUpgrade_Float128Bug). I also included a [failing test case](https://github.com/deech/c2hs/tree/LanguageCUpgrade_Float128Bug/tests/bugs/issue-192) using the minimal example provided. I was able to work around this...
I also, unfortunately, had issues setting the location by commit hash. I ended up doing: ``` packages: - location: . - location: https://github.com/deech/c2hs/archive/LanguageCUpgrade_Float128Bug.zip extra-deps: - c2hs-0.28.2 - vector-0.11.0.0 - primitive-0.6.1.0...
Once your `language-c` PR is merged I'll cut another release of `c2hs`.
Would you mind posting your Nix recipe? I don't run NixOS but I can try replicating with plain Nix.