[commit: ghc] master: Re-work the naming story for the GHCi prompt (Trac #8649) (73c08ab)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[commit: ghc] master: Re-work the naming story for the GHCi prompt (Trac #8649) (73c08ab)

Simon Marlow-7
On 10/01/14 08:52, git at git.haskell.org wrote:

> Repository : ssh://git at git.haskell.org/ghc
>
> On branch  : master
> Link       : http://ghc.haskell.org/trac/ghc/changeset/73c08ab10e4077e18e459a1325996bff110360c3/ghc
>
>> ---------------------------------------------------------------
>
> commit 73c08ab10e4077e18e459a1325996bff110360c3
> Author: Simon Peyton Jones <simonpj at microsoft.com>
> Date:   Thu Jan 9 17:58:18 2014 +0000
>
>      Re-work the naming story for the GHCi prompt (Trac #8649)

Thanks for going to the trouble of cleaning this up.  I was never happy
with how this all worked.

The prefix colon in the name (":Interactive") was supposed to avoid the
possibility of clashing with a user-defined module, rather like the
":Main" pseudo-module.  Could that be a problem with "Ghci1" and so on?
  What about the "interactive" package?  Perhaps these ought to be
renamed to something that can't be user-defined?

Cheers,
Simon


Reply | Threaded
Open this post in threaded view
|

[commit: ghc] master: Re-work the naming story for the GHCi prompt (Trac #8649) (73c08ab)

Simon Peyton Jones
Well, the module names can be disambiguated by the package name (it's already possible to have the same module in different packages). It is indeed possible to have a package called "interactive", and I simply assumed that would be unlikely.  I'd be ok with changing it to ":interactive" if you want to do that.

Simon

| -----Original Message-----
| From: ghc-devs [mailto:ghc-devs-bounces at haskell.org] On Behalf Of Simon
| Marlow
| Sent: 19 January 2014 08:24
| To: ghc-devs at haskell.org
| Subject: Re: [commit: ghc] master: Re-work the naming story for the
| GHCi prompt (Trac #8649) (73c08ab)
|
| On 10/01/14 08:52, git at git.haskell.org wrote:
| > Repository : ssh://git at git.haskell.org/ghc
| >
| > On branch  : master
| > Link       :
| http://ghc.haskell.org/trac/ghc/changeset/73c08ab10e4077e18e459a1325996
| bff110360c3/ghc
| >
| >> ---------------------------------------------------------------
| >
| > commit 73c08ab10e4077e18e459a1325996bff110360c3
| > Author: Simon Peyton Jones <simonpj at microsoft.com>
| > Date:   Thu Jan 9 17:58:18 2014 +0000
| >
| >      Re-work the naming story for the GHCi prompt (Trac #8649)
|
| Thanks for going to the trouble of cleaning this up.  I was never happy
| with how this all worked.
|
| The prefix colon in the name (":Interactive") was supposed to avoid the
| possibility of clashing with a user-defined module, rather like the
| ":Main" pseudo-module.  Could that be a problem with "Ghci1" and so on?
|   What about the "interactive" package?  Perhaps these ought to be
| renamed to something that can't be user-defined?
|
| Cheers,
| Simon
|
| _______________________________________________
| ghc-devs mailing list
| ghc-devs at haskell.org
| http://www.haskell.org/mailman/listinfo/ghc-devs