Re: [Haskell-cafe] Correspondence between libraries and modules

2012-05-25 Thread Chris Wong
Rustom: > O well... If the noob trap is one error playing it safe is probably another > so here goes with me saying things that I (probably) know nothing about: > 1. cabal was a beautiful system 10 years ago.  Now its being forcibly scaled > up 2 (3?) orders of magnitude and is creaking at the sea

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-05-25 Thread Rustom Mody
On Wed, May 23, 2012 at 9:44 PM, Gregg Lebovitz wrote: > Rustom, > > I am drafting a document that captures some of the social norms from the > comments on this list, mostly from Brandon and Wren. I have captured the > discussion about module namespace and am sorting out the comments on the > re

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-05-23 Thread Gregg Lebovitz
Rustom, I am drafting a document that captures some of the social norms from the comments on this list, mostly from Brandon and Wren. I have captured the discussion about module namespace and am sorting out the comments on the relationship between libraries and packa

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-05-23 Thread Rustom Mody
On Tue, Apr 24, 2012 at 7:29 PM, Gregg Lebovitz wrote: > > > On 4/23/2012 10:17 PM, Brandon Allbery wrote: > > On Mon, Apr 23, 2012 at 17:16, Gregg Lebovitz wrote: > >> On 4/23/2012 3:39 PM, Brandon Allbery wrote: >> >> The other dirty little secret that is carefully being avoided here is >>

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-05-07 Thread Ben Franksen
Alvaro Gutierrez wrote: > I've only dabbled in Haskell, so please excuse my ignorance: why isn't > there a 1-to-1 mapping between libraries and modules? > > As I understand it, a library can provide any number of unrelated modules, > and conversely, a single module could be provided by more than o

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-04-26 Thread Gregg Lebovitz
On 4/24/2012 11:44 PM, wren ng thornton wrote: To pick another similar namespacing issue, consider the problem of Google Code. In Google Code there's a single namespace for projects, and the Google team spends a lot of effort on maintaining that namespace and resolving conflicts. (I know folks

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-04-25 Thread Gregg Lebovitz
On 4/24/2012 11:49 PM, wren ng thornton wrote: On 4/24/12 9:59 AM, Gregg Lebovitz wrote: The question of how to support rapid innovation and stable deployment is not an us versus them problem. It is one of staging releases. The Linux kernel is a really good example. The Linux development team

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-04-24 Thread Henk-Jan van Tuyl
On Wed, 25 Apr 2012 05:44:28 +0200, wren ng thornton wrote: On 4/23/12 11:39 AM, Gregg Lebovitz wrote: On 04/23/2012 12:03 AM, wren ng thornton wrote: However, until better technical support is implemented (not just for GHC, but also jhc, UHC,...) it's best to follow social practice. Wren

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-04-24 Thread wren ng thornton
On 4/23/12 3:06 PM, Alvaro Gutierrez wrote: I see. The first thing that comes to mind is the notion of module granularity, which of course is subjective, so whether a single module or multiple ones should handle e.g. doubles and integrals is a good question; are there guidelines as to how those c

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-04-24 Thread wren ng thornton
On 4/24/12 9:59 AM, Gregg Lebovitz wrote: The question of how to support rapid innovation and stable deployment is not an us versus them problem. It is one of staging releases. The Linux kernel is a really good example. The Linux development team innovates faster than the community can absorb it.

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-04-24 Thread wren ng thornton
On 4/23/12 11:39 AM, Gregg Lebovitz wrote: On 04/23/2012 12:03 AM, wren ng thornton wrote: However, until better technical support is implemented (not just for GHC, but also jhc, UHC,...) it's best to follow social practice. Wren, I am new to Haskell and not aware of all of the conventions. Is

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-04-24 Thread Gregg Lebovitz
On 4/23/2012 10:17 PM, Brandon Allbery wrote: On Mon, Apr 23, 2012 at 17:16, Gregg Lebovitz wrote: On 4/23/2012 3:39 PM, Brandon Allbery wrote:

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-04-23 Thread Brandon Allbery
On Mon, Apr 23, 2012 at 17:16, Gregg Lebovitz wrote: > On 4/23/2012 3:39 PM, Brandon Allbery wrote: > > The other dirty little secret that is carefully being avoided here is > the battle between the folks for whom Haskell is a language research > platform and those who use it to get work done.

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-04-23 Thread Gregg Lebovitz
On 4/23/2012 3:39 PM, Brandon Allbery wrote: On Mon, Apr 23, 2012 at 11:39, Gregg Lebovitz wrote: Am I missing something that makes this problem harder than other

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-04-23 Thread Brandon Allbery
On Mon, Apr 23, 2012 at 11:39, Gregg Lebovitz wrote: > Am I missing something that makes this problem harder than other systems > and languages? Is anyone currently working on the packaging and > distribution issues? If not, does anyone else want to work on it? > The other dirty little secret t

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-04-23 Thread Alvaro Gutierrez
Thanks for the write-up -- it's been very helpful! On Mon, Apr 23, 2012 at 12:03 AM, wren ng thornton wrote: > Consider one of my own libraries (chosen randomly via Safari's url > autocompletion): > > > http://hackage.haskell.org/**package/bytestring-lexing

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-04-23 Thread Gregg Lebovitz
On 04/23/2012 12:03 AM, wren ng thornton wrote: However, until better technical support is implemented (not just for GHC, but also jhc, UHC,...) it's best to follow social practice. Wren, I am new to Haskell and not aware of all of the conventions. Is there a place where I can find information

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-04-22 Thread wren ng thornton
On 4/22/12 6:30 PM, Alvaro Gutierrez wrote: On Sun, Apr 22, 2012 at 4:45 PM, Brandon Allberywrote: One reason: modules serve multiple purposes; one of these is namespacing, and in the case of interfaces to foreign libraries that may force a division that would otherwise not exist. Interesting

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-04-22 Thread Alvaro Gutierrez
Thanks for your response. On Sun, Apr 22, 2012 at 4:45 PM, Brandon Allbery wrote: > One reason: modules serve multiple purposes; one of these is namespacing, > and in the case of interfaces to foreign libraries that may force a > division that would otherwise not exist. > Interesting. Could you

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-04-22 Thread Brandon Allbery
On Sun, Apr 22, 2012 at 13:15, Alvaro Gutierrez wrote: > As I understand it, a library can provide any number of unrelated modules, > and conversely, a single module could be provided by more than one library. > I can see how this affords library authors more flexibility, but at a cost: > there i

[Haskell-cafe] Correspondence between libraries and modules

2012-04-22 Thread Alvaro Gutierrez
Hi there, I've only dabbled in Haskell, so please excuse my ignorance: why isn't there a 1-to-1 mapping between libraries and modules? As I understand it, a library can provide any number of unrelated modules, and conversely, a single module could be provided by more than one library. I can see h