[Haskell] Lexically scoped type variables: new proposal

2006-10-26 Thread Ben Rudiak-Gould
Hi, everyone. Long time no see. I have a specific proposal for scoped type variables, which is totally different from plans A and B, and which I'd like people to pick to pieces for me. (Especially you, Simon.) Type variable scoping in System F is simple: the type bindings are explicit and follow

[Haskell-cafe] RE: [Haskell] Lexically scoped type variables

2006-10-19 Thread Simon Peyton-Jones
| just one more problem is that this issue is too complicated. i'm not | sure that i correctly understands details, but for me the situation | seems like this: in 6.4 it was no distinction between declarations and | usages of type variables - first use declared it, while in 6.6 we have | exactly

[Haskell] Lexically scoped type variables

2006-10-18 Thread Simon Peyton-Jones
This message is about scoped type variables. I'm sending it to the Haskell mailing list, because I think that the question of scoped type variables is of general interest to Haskellers, but I suggest that you all send *replies* to Haskell Café, where this thread originated. Simon The

[Haskell-cafe] Re: [Haskell] Lexically scoped type variables

2006-10-18 Thread Bulat Ziganshin
Hello Simon, Wednesday, October 18, 2006, 12:09:40 PM, you wrote: Other alternatives would be: do something about partial type signatures; or make GADT type inference more sophisticated (and thereby perhaps less predicatable). just one more problem is that this issue is too complicated. i'm

[Haskell-cafe] [Haskell] Lexically scoped type variables

2004-11-26 Thread Martin Sulzmann
Hi, let me answer your questions by comparing what's implemented in Chameleon. (For details see http://www.comp.nus.edu.sg/~sulzmann/chameleon/download/haskell.html#scoped) QUESTION 1 - In short, I'm considering adopting the Mondrian/Chameleon rule for GHC. There are two

[Haskell] Lexically scoped type variables

2004-11-25 Thread Simon Peyton-Jones
| This is a great example, thanks for posting it. However, I feel like | the real problem in this example is the lexically-scoped type | variables declared with your function f. Paul's message gives me an excuse to consult the Haskell list about the design of lexically scoped type variables. I

[Haskell-cafe] RE: [Haskell] Lexically scoped type variables

2004-11-25 Thread Josef Svenningsson
-Jones Sent: den 25 november 2004 11:44 To: [EMAIL PROTECTED] Subject: [Haskell] Lexically scoped type variables | This is a great example, thanks for posting it. However, I feel like | the real problem in this example is the lexically-scoped type | variables declared with your function f