Hi Simon,
On Fri, Sep 23, 2011 at 10:04, Simon Peyton-Jones wrote:
I did this.
*TF> :kind F Int
F Int :: *
*TF> :kind! F Int
F Int :: *
= Bool
In the end I just made an eager version of :kind as the command: in addition to displaying the kind of the type, it normalises it and shows the result.
It’s in HEAD. Documentation to come when I get home.
That's great! Much appreciated.
I’m not wedded to this command name. If everyone wants “:normalise” it would only take a 1-line change.
I'm also not picky about the name. But I do think fewer keystrokes are better. I guess with ":kind!" you have have to type at least ':', 'k', '\t', and '!', whereas with a unique first character such as 'n', you only have to type ':', 'n' [1]. But that's the only real "concern" I would have about the name.
Safe travels!
Regards,
Sean