RFC: changes to -i flag for finding source files
conrad at metadecks.org
Mon Apr 28 11:23:56 UTC 2014
On 28 April 2014 18:40, Roman Cheplyaka <roma at ro-che.info> wrote:
> * Simon Marlow <marlowsd at 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
> > 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
> 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
Graphics.UI.Gtk=src System.IO.EEG=src Game.Flappy2048=src
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Glasgow-haskell-users