Re: ghc cyclic import error confusing

2011-06-16 Thread Evan Laforge
s `Foo3' >                which imports `Foo4' > > Simon > > | -Original Message- > | From: glasgow-haskell-users-boun...@haskell.org > [mailto:glasgow-haskell-users- > | boun...@haskell.org] On Behalf Of Bryan Richter > | Sent: 14 April 2011 18:24

RE: ghc cyclic import error confusing

2011-06-14 Thread Simon Peyton-Jones
which imports `Foo4' Simon | -Original Message- | From: glasgow-haskell-users-boun...@haskell.org [mailto:glasgow-haskell-users- | boun...@haskell.org] On Behalf Of Bryan Richter | Sent: 14 April 2011 18:24 | To: glasgow-haskell-users@haskell.org | Subject: Re: ghc cyclic import error

Re: ghc cyclic import error confusing

2011-04-14 Thread wren ng thornton
On 4/14/11 1:24 PM, Bryan Richter wrote: Perhaps the following change would be sufficient? --- tmp/GhcMake.hs~ 2011-04-14 09:46:02.177298318 -0700 +++ tmp/GhcMake.hs 2011-04-14 09:52:25.121290827 -0700 @@ -1460,7 +1460,8 @@ cyclicModuleErr :: [ModSummary] -> SDoc cyclicModuleErr m

Re: ghc cyclic import error confusing

2011-04-14 Thread Bryan Richter
On Wed, Apr 13, 2011 at 11:44:33AM +0100, Simon Marlow wrote: > On 09/04/2011 04:32, Evan Laforge wrote: > >I've found ghc's cyclic import error to be rather confusing, and I > >finally took the time to understand why. Here's an example: > > > >Module imports form a cycle for modules: > > Cmd.Cmd

Re: ghc cyclic import error confusing

2011-04-13 Thread Simon Marlow
On 09/04/2011 04:32, Evan Laforge wrote: I've found ghc's cyclic import error to be rather confusing, and I finally took the time to understand why. Here's an example: Module imports form a cycle for modules: Cmd.Cmd (./Cmd/Cmd.hs) imports: Perform.Midi.Instrument Instrument.MidiDb Instru