RE: self-import

2005-01-19 Thread Simon Peyton-Jones
ginal Message- | From: Thomas Hallgren [mailto:[EMAIL PROTECTED] | Sent: 18 January 2005 22:12 | To: Simon Peyton-Jones; glasgow-haskell-users@haskell.org | Cc: [EMAIL PROTECTED] | Subject: Re: self-import | | Simon Peyton-Jones wrote: | | >I quite liked this idea until I thought of this: | >

Re: self-import

2005-01-18 Thread Thomas Hallgren
Simon Peyton-Jones wrote: I quite liked this idea until I thought of this: module Doc.Pretty.Long( M.f, f ) where import qualified M( f ) import Doc.Pretty.Long as M f x = x The second import decl imports all the things exported by Doc.Pretty.Long. But what doe

RE: self-import

2005-01-18 Thread Duncan Coutts
On Tue, 2005-01-18 at 10:43 +, Simon Peyton-Jones wrote: > | And if it turns out we are in the mood to look at extending the > | inport/export/module syntax perhaps we could also consider the > qualified > | export idea posted a few weeks ago. > | > | That was so that you could say: > | > |

RE: self-import

2005-01-18 Thread Simon Peyton-Jones
| And if it turns out we are in the mood to look at extending the | inport/export/module syntax perhaps we could also consider the qualified | export idea posted a few weeks ago. | | That was so that you could say: | | import Graphics.UI.Gtk | | and then use Button.setText (rather than buttonSet

RE: self-import

2005-01-18 Thread Duncan Coutts
On Tue, 2005-01-18 at 10:13 +, Simon Peyton-Jones wrote: > I think what you want is actually more directly stated thus: > > module Doc.Pretty.Long( ... ) as M where > ... > > The 'as M' in the module header gives an alias for Doc.Pretty.Long just > as it does for an import stat

RE: self-import

2005-01-18 Thread Simon Peyton-Jones
trying to compile is not available. It would be nice if ghc | could recognize the self-import case and handle it directly. I quite liked this idea until I thought of this: module Doc.Pretty.Long( M.f, f ) where import qualified M( f ) import Doc.Pretty.Long as M

self-import

2005-01-10 Thread John Meacham
ile is not available. It would be nice if ghc could recognize the self-import case and handle it directly. John -- John Meacham - ârepetae.netâjohnâ ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailma