18
나는 src
디렉토리가 있습니다. 이 디렉토리에는 Main.hs
파일과 Test
디렉토리가 있습니다. Test
디렉토리에는 Test.hs
모듈이 있습니다. 나는 음모로 그것을 컴파일해야합니다. 나는 그것이 OK입니다 cabal configure
을 수행 할 때카발 : 소스로 빌드 디렉토리
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 build
하려 할 때 다음과 같은 오류 얻을 : 내 음모 파일에서
내가 가진
cabal build
Preprocessing executables for main-0.0.1...
cabal: can't find source for Test/Test in ., dist/build/autogen
을
Main.hs
과을 사용하여 다른 디렉토리를 올바르게 빌드하려면 어떻게해야합니까?파일?
감사합니다. Test.Test
는 src/Test/Test.hs
에 정의되어있는 경우