Re: RFC: changes to -i flag for finding source files

2014-04-28 Thread Simon Marlow
On 25/04/2014 17:57, Roman Cheplyaka wrote: * Edward Kmett ekm...@gmail.com [2014-04-25 11:22:46-0400] +1 from me. I have a lot of projects that suffer with 4 levels of vacuous subdirectories just for this. In theory cabal could support this on older GHC versions by copying all of the files to

Re: RFC: changes to -i flag for finding source files

2014-04-28 Thread Simon Marlow
On 25/04/2014 21:26, Malcolm Wallace wrote: On 25 Apr 2014, at 14:17, Simon Marlow wrote: The problem we often have is that when you're writing code for a library that lives deep in the module hierarchy, you end up needing a deep directory structure, where the top few layers are all empty.

Re: RFC: changes to -i flag for finding source files

2014-04-28 Thread Simon Marlow
Thanks for all the feedback. Clearly opinion is divided on this one, so I'll sit on it and think it through some more. Cheers, Simon On 25/04/2014 14:17, Simon Marlow wrote: I want to propose a simple change to the -i flag for finding source files. The problem we often have is that when

Re: RFC: changes to -i flag for finding source files

2014-04-28 Thread Roman Cheplyaka
* Simon Marlow marlo...@gmail.com [2014-04-28 09:26:23+0100] On 25/04/2014 17:57, Roman Cheplyaka wrote: * Edward Kmett ekm...@gmail.com [2014-04-25 11:22:46-0400] +1 from me. I have a lot of projects that suffer with 4 levels of vacuous subdirectories just for this. In theory cabal could

RE: Removing -fext-core

2014-04-28 Thread Simon Peyton Jones
In principle I think it's a pity to lose External Core. It provides an interface to GHC that is based on the simplest possibly connector (a text file), and allows GHC's front end or back end to be used by other systems written in different languages. However, as you say, it has received no

Re: RFC: changes to -i flag for finding source files

2014-04-28 Thread Conrad Parker
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,

Re: RFC: changes to -i flag for finding source files

2014-04-28 Thread Alois Cochard
Coming from Scala where I can basically structure my directory sources the way I want I got a bit frustrated by Haskell rigidity here. So definitely a +1, and I agree cabal support is quite important. OTOH, I don't think Haskell should go in the way of allowing 'any' structure (like scala), but

Re: RFC: changes to -i flag for finding source files

2014-04-28 Thread Sven Panne
2014-04-25 22:26 GMT+02:00 Malcolm Wallace malcolm.wall...@me.com: [...] The feature seems like a very low power-to-weight ratio, so -1 from me. -1 from me, for the same reasons. ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org