Ho una directory src
. In questa directory ho il file Main.hs
e la directory Test
. Nella directory Test
ho il modulo Test.hs
. Ho bisogno di compilarlo con la cabala.Cabal: build dir con source
Nel mio file cabala ho:
Executable main
-- .hs or .lhs file containing the Main module.
Main-is: src/Main.hs
e
-- Modules not exported by this package.
Other-modules: Test.Test
Quando faccio cabal configure
va bene, ma quando provo a cabal build
ricevo il seguente errore:
cabal build
Preprocessing executables for main-0.0.1...
cabal: can't find source for Test/Test in ., dist/build/autogen
Come posso creare correttamente Main.hs
e alcune altre directory con .hs
file?
Grazie.