c-source must not have c++ source files in it, these should go in cxx-sources. see https://github.com/haskell/cabal/pull/9200