rturk at science.uva.nl
Sat Feb 14 18:51:08 EST 2009
On Thu, Feb 12, 2009 at 08:47:36AM +0000, Simon Marlow wrote:
> Remi Turk wrote:
>> On Tue, Feb 10, 2009 at 01:31:24PM +0000, Simon Marlow wrote:
>>> My vote would be:
>>> :info class Show
>>> :info type Show
>>> :info instance Show
>>> :info Show
>>> displays information about everything called "Show"
>>> I know that classes and types share the same namespace currently, but
>>> it might not always be so.
>> Sounds good in principle, and has the advantage of being 100%
>> backward compatible, but ":i class Show" for the common case
>> (ahum, _my_ common case at least ;) still seems rather verbose,
>> so how to abbreviate that?
> How about a macro?
> :def ic return . (":info class " ++)
Ah of course, I keep forgetting about :def :)
Note that when classes and types would stop sharing their namespace,
":info instance Show" would again be ambiguous though..
More information about the Glasgow-haskell-users