15 Aug
2008
15 Aug
'08
2:32 a.m.
Hi! I'm trying to set up a project with both src and lib directories with cabal. My blah.cabal file looks like: Library Build-Depends: base Exposed-Modules: Foo hs-source-dirs: lib/foo Executable hai Build-depends: base Main-is: Bar.hs ghc-options: -O hs-source-dirs: src/bar Other-Modules: Foo extra-libraries: Foo extra-lib-dirs: lib/bar But I get: $ runhaskell blah.cabal configure $ runhaskell blah.cabal build src/bar/Bar.hs:6:7: Could not find module `Foo': Use -v to see a list of the files... In Bar.hs, line 6 says "import Svm" What's wrong? Thanks!