[Haskell-beginners] cabal: library and executable

harry voldermort at hotmail.com
Thu May 9 18:13:30 CEST 2013


David McBride <toad3k <at> gmail.com> writes:

>
http://hackage.haskell.org/packages/archive/manatee-editor/0.1.1/manatee-editor.cabal

Thanks for the example, but it seems to work because of the simpler
directory structure.

I've got:
src/Foo/Bar/SomeModule.hs
exec/Executable.hs

In Executable.hs, I have
import Foo.Bar.SomeModule

The library section exposes Foo.Bar.SomeModule just fine, but nothing I do
will make cabal find it when compiling Executable.hs.

On a related point, what actually happens to the executables defined in a
cabal file?




More information about the Beginners mailing list