18
我有一個src
目錄。在這個目錄中我有Main.hs
文件和Test
目錄。在Test
目錄中我有Test.hs
模塊。我需要用cabal編譯它。Cabal:構建目錄的目錄
在我的陰謀文件我有:
Executable main
-- .hs or .lhs file containing the Main module.
Main-is: src/Main.hs
和
-- Modules not exported by this package.
Other-modules: Test.Test
當我做cabal configure
沒關係,但是當我嘗試cabal build
我得到以下錯誤:
cabal build
Preprocessing executables for main-0.0.1...
cabal: can't find source for Test/Test in ., dist/build/autogen
如何正確構建Main.hs
和其他一些目錄.hs
文件?
謝謝。