Is it possible to use cmake for Haskell projects?

后端 未结 4 2207
失恋的感觉
失恋的感觉 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:36

    You can certainly use CMake to build Haskell applications and libraries. To do so, you will need to duplicate much of what Cabal does, which will be instructive, but also time consuming.

    I'd recommend using cabal build -v to see the commands emitted by Cabal, and then transcribing them into CMake form.

    Or, use CMake to call cabal on the Haskell code -- that's likely to be less annoying.

提交回复
热议问题