On 28 April 2014 18:40, Roman Cheplyaka <r...@ro-che.info> wrote:

> * Simon Marlow <marlo...@gmail.com> [2014-04-28 09:26:23+0100]
> > No, the idea would be to use hs-source-dirs like this:
> >
> >   hs-source-dirs: A.B.C=src
> >
> > Cabal just passes this in a -i option to GHC, so it almost Just Works,
> > except that Cabal needs to preprocess some source files so it needs to
> find
> > them, and also sdist needs to find source files.
>
> In that case, I'm in favour of this proposal.
>
> Please consider the reversed syntax instead:
>
>   hs-source-dirs: src=A.B.C
>
> I find it more intuitive, because A.B.C becomes sort of an optional
> parameter,
> the empty prefix being its default value.
>

src=A.B.C implies a 1-1 mapping between a srcdir and a module root, whereas
A.B.C=src allows different modules (eg. all a project) to live in the same
dir:

Graphics.UI.Gtk=src System.IO.EEG=src Game.Flappy2048=src

Conrad.
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to