Kindness of strangers (or strangeness of Kinds)
simonpj at microsoft.com
Fri Jun 8 10:39:46 CEST 2012
There is a little, ill-documented, sub-kind hierarchy in GHC. I'm trying hard to get rid of it as much as possible, and it is much less important than it used to be. It's always been there, and is nothing to do with polykinds.
I've extended the commentary a bit: see "Types" and "Kinds" here
The ArgKind thing has gone away following Max's recent unboxed-tuples patch, so we now only have OpenKind (described on the above pages).
| -----Original Message-----
| From: glasgow-haskell-users-bounces at haskell.org [mailto:glasgow-haskell-
| users-bounces at haskell.org] On Behalf Of AntC
| Sent: 08 June 2012 00:37
| To: glasgow-haskell-users at haskell.org
| Subject: Re: Kindness of strangers (or strangeness of Kinds)
| José Pedro Magalhães <jpm <at> cs.uu.nl> writes:
| > On Thu, Jun 7, 2012 at 2:46 AM, AntC <anthony_clayden <at>
| > clear.net.nz>
| > What does the `ArgKind' message mean?
| > `ArgKind` and `OpenKind` is what previously was called `?` and `??`
| > (or the
| otherway around; I can't remember).
| Thanks Pedro, I'm trying to understand what's changing and why. (And I'd
| better repeat that I'm looking at 7.4.1, not HEAD; and SPJ's being
| perfectly clear that the promoted Kind stuff is not yet officially
| approved for prime
| GHC 7.2.1> :k (->) :: ?? -> ? -> *
| GHC 7.4.1> :k (->) :: * -> * -> *
| At first sight (->) is becoming less polyKinded. Is the eventual aim to
| GHC 7.6+> :k (->) :: AnyKind1 -> AnyKind2 -> *
| >You might also want to have a look at Richard and Stephanie's latest
| draft, about singletons, which is related to what you are trying in your
| That's what I'm doing, and trying to understand the machinery behind it.
| naieve approach I started with was how to get one-way from type to its
| value -- I wasn't aiming for the whole singleton gig.
| Glasgow-haskell-users mailing list
| Glasgow-haskell-users at haskell.org
More information about the Glasgow-haskell-users