RE: recursive import

2006-08-15 Thread Simon Peyton-Jones
Well I agree it's not ideal. But from what you say it's working as advertised. It's not easy to derive hs-boot from hs, because you probably don't want to put all the type sigs in the hs file into the hs-boot file, because that might create yet more dependencies for the hs-boot file. Also a comm

Re: recursive import

2006-06-06 Thread Serge D. Mechveliani
On Tue, Jun 06, 2006 at 02:39:00PM +0200, Johannes Waldmann wrote: > As for recursive module imports, > could you perhaps show an example where this occurs. > I found that in my code, I can re-arrange things > so as to remove the cyclic dependency. Best regards, This is somewhat like this: -

Re: recursive import

2006-06-06 Thread Simon Marlow
Simon Peyton-Jones wrote: I don't know about Cabal, but probably a Cabal-er can reply. Cabal should work fine with .hs-boot files. Cheers, Simon ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/m

Re: recursive import

2006-06-06 Thread Johannes Waldmann
As for recursive module imports, could you perhaps show an example where this occurs. I found that in my code, I can re-arrange things so as to remove the cyclic dependency. Best regards, -- -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 -- http://www.imn.htwk-leipzig.de/~waldmann/ -

Re: recursive import

2006-06-06 Thread Christian Maeder
Serge D. Mechveliani wrote: Who knows, please, how usable are currently recursive module imports in Haskell, in GHC ? compiling works fine as SPJ pointed out. Is it essentially more difficult to `make' and support a project which has 50 modules, and half of all the module pairs import each o

RE: recursive import

2006-06-05 Thread Simon Peyton-Jones
I don't know about Cabal, but probably a Cabal-er can reply. Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:glasgow-haskell-users- | [EMAIL PROTECTED] On Behalf Of Serge D. Mechveliani | Sent: 05 June 2006 13:45 | To: glasgow-haskell-users@haskell.org | Subject: recursive im

RE: recursive import

2006-06-05 Thread Simon Peyton-Jones
Haskell the language allows arbitrary recursive modules. Implementations differ in how they support this. GHC's module-at-a-time compilation model means that GHC needs an hs-boot file to "get started". The manual tries to explain what you can and can't do. If you follow the rules it works pretty

Re: recursive import

2006-06-03 Thread Brian Hulley
Serge D. Mechveliani wrote: People, Who knows, please, how usable are currently recursive module imports in Haskell, in GHC ? Is it essentially more difficult to `make' and support a project which has 50 modules, and half of all the module pairs import each other? Is recursive import in Haskell-