Is it possible to use cmake for Haskell projects?

后端 未结 4 2206
失恋的感觉
失恋的感觉 2021-02-13 17:11

I am planning a project written in Haskell, maybe there are some parts in C as well. For the buildsystem I decided against the common choice for Haskell programs cabal, mainly b

4条回答
  •  别跟我提以往
    2021-02-13 17:39

    I've rewritten @arrowdodger's initial work, in the process fixing a couple bugs that were present:

    • Could not be used from an in-project cmake/ directory because of hardcoded paths
    • There were some occurrences of Fortran/CXX variables (which caused buggy behaviour)
    • Lots of code that was irrelevant to Haskell could be removed, other code added based on newer versions of the C/CXX language files that ship with CMake

    The repository can be found at:

    https://github.com/kvanberendonck/cmake-haskell

    Working beautifully for me, and the build speed I can get out of ninja is extremely impressive.

提交回复
热议问题