Cabal: build dir with source
问题 I have a src directory. In this directory I have Main.hs file and Test directory. In the Test directory I have Test.hs module. I need to compile it with cabal. In my cabal file I have: Executable main -- .hs or .lhs file containing the Main module. Main-is: src/Main.hs and -- Modules not exported by this package. Other-modules: Test.Test When I do cabal configure it's OK, but when I try to cabal build I get the following error: cabal build Preprocessing executables for main-0.0.1... cabal: