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
文件?
谢谢。