[Haskell-beginners] Cabal modules and directories

Rehno Lindeque errantkid at gmail.com
Wed Mar 3 14:35:41 EST 2010


On Wed, Mar 3, 2010 at 9:19 PM, Daniel Fischer <daniel.is.fischer at web.de>wrote:

> Am Mittwoch 03 März 2010 19:57:13 schrieb Rehno Lindeque:
> > I'm sorry because this is a very elementary question but despite my
> > attempts I can't seem to get cabal working for my project structure.
> >
> > I have two main source directories:
> >   src\haskell
> >   src\semanticdb
> >
> > Inside src\haskell I have main.hs with the module Main.
> > Inside src\semanticdb I have semanticdb.hs with module OSIX.SemanticDB
>
> module OSIX.SemanticDB
>
> must be in the file 'SemanticDB.hs' (or .lhs), in the subdirectory OSIX of
> the source directory listed in the .cabal file, here src/semanticdb, so
>

Thanks, moving the file to src/semanticdb/OSIX works. However, I would
prefer it if restructuring my directories weren't necessary. Is it possible?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20100303/7dfe1e1f/attachment.html


More information about the Beginners mailing list