Cabal output is redirected but not generated

后端 未结 2 1126
你的背包
你的背包 2020-12-07 01:00

I have a fairly simple haskell project set up, where I just want to have the framework working with testing and so on before I actually start coding. I have my source files

2条回答
  •  时光说笑
    2020-12-07 01:43

    Instead of renaming the TestSuite module as Fedor suggests you could add a GHC option to set the name of the main module to your Cabal file:

    Test-Suite testFedor
        ghc-options:    -main-is TestSuite
    

    Apparently Cabal main-is and GHC main-is are different. I don't know in what way.

提交回复
热议问题