[Haskell-beginners] Cabal modules and directories
errantkid at gmail.com
Wed Mar 3 14:54:21 EST 2010
On Wed, Mar 3, 2010 at 9:35 PM, Rehno Lindeque <errantkid at gmail.com> wrote:
> 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?
Perhaps I should add that the project isn't haskell-only and already
has some conventions in place such as using lower case for directories
etc. Thus I prefer not to change these. Compilation worked with the
current directory structure using a makefile but I can't duplicate the
feat with cabal. Is there a work-around perhaps?
Also, the 'executable' part and 'cabal configure' is correct, yes :)
More information about the Beginners