【发布时间】:2014-06-29 01:18:42
【问题描述】:
我有一个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 文件的目录?
谢谢。
【问题讨论】: