Re: [Haskell-cafe] circular imports

2010-09-07 Thread Mathew de Detrich
That definitely makes more sense On 07/09/2010 3:06 PM, Daniel Peebles pumpkin...@gmail.com wrote: I was under the impression that the main reason GHC requires .hs-boot files is that nobody has had the time or inclination to make it resolve circular dependencies automatically, and not an

Re: [Haskell-cafe] circular imports

2010-09-07 Thread Ivan Lazar Miljenovic
On 7 September 2010 16:09, Mathew de Detrich dete...@gmail.com wrote: That definitely makes more sense Well, the report (section 5.7) says you're allowed to request extra info for mutually recursive modules... -- Ivan Lazar Miljenovic ivan.miljeno...@gmail.com IvanMiljenovic.wordpress.com

RE: [Haskell-cafe] circular imports

2010-09-07 Thread Simon Peyton-Jones
://hackage.haskell.org/trac/ghc/ticket/1409#comment:37 Simon From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Daniel Peebles Sent: 07 September 2010 06:06 To: Mathew de Detrich Cc: Ivan Lazar Miljenovic; haskell Subject: Re: [Haskell-cafe] circular imports I

Re: RE: [Haskell-cafe] circular imports

2010-09-07 Thread Mathew de Detrich
#comment:37 Simon *From:* haskell-cafe-boun...@haskell.org [mailto: haskell-cafe-boun...@haskell.org] *On Behalf Of *Daniel Peebles *Sent:* 07 September 2010 06:06 *To:* Mathew de Detrich *Cc:* Ivan Lazar Miljenovic; haskell *Subject:* Re: [Haskell-cafe] circular imports I was under

Re: [Haskell-cafe] circular imports

2010-09-07 Thread corentin . dupont
@haskell.org Objet Re: [Haskell-cafe] circular imports 07/09/2010 06:52

Re: [Haskell-cafe] circular imports

2010-09-07 Thread Henning Thielemann
Mathew de Detrich schrieb: I had the same issue zonks ago, and I resorted to using the hs-boot file method as well (which worked fine) Which I guess brings me to my second point, is this something that GHC should do automatically when it sees circular dependencies? When I asked about it

Re: [Haskell-cafe] circular imports

2010-09-07 Thread Henning Thielemann
Simon Peyton-Jones schrieb: I was under the impression that the main reason GHC requires .hs-boot files is that nobody has had the time or inclination to make it resolve circular dependencies automatically, and not an intentional design decision to encourage good design. Indeed. I’ve added

Re: [Haskell-cafe] circular imports

2010-09-06 Thread Henning Thielemann
On Mon, 6 Sep 2010, Evan Laforge wrote: I have a few techniques to get out: - Replace Things with ThingIds which have no big dependencies, and can then be looked up in a Map later. This replaces direct access with lookup and thows some extra Maybes in there, which is not very nice. -

Re: [Haskell-cafe] circular imports

2010-09-06 Thread Edward Z. Yang
Excerpts from Evan Laforge's message of Mon Sep 06 13:30:43 -0400 2010: I feel like the circular imports problem is worse in haskell than other languages. Maybe because there is a tendency to centralize all state, since you need to define it along with your state monad. But the state monad

Re: [Haskell-cafe] circular imports

2010-09-06 Thread Mathew de Detrich
I had the same issue zonks ago, and I resorted to using the hs-boot file method as well (which worked fine) Which I guess brings me to my second point, is this something that GHC should do automatically when it sees circular dependencies? When I asked about it earlier on #haskell, I was told that

Re: [Haskell-cafe] circular imports

2010-09-06 Thread Daniel Peebles
I was under the impression that the main reason GHC requires .hs-boot files is that nobody has had the time or inclination to make it resolve circular dependencies automatically, and not an intentional design decision to encourage good design. On Tue, Sep 7, 2010 at 6:51 AM, Mathew de Detrich