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
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
://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
#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
@haskell.org
Objet
Re: [Haskell-cafe] circular imports
07/09/2010 06:52
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
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
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.
-
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
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
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
11 matches
Mail list logo