Re: [Haskell-cafe] forall and a parse error

2006-11-15 Thread Andres Loeh
> Probably unrelated, but this thread is what triggered it for me. > There is a minor bug in showing impredicative types without > -fglasgow-exts: *hope I got that right* > > Prelude> let x = [] :: [forall a. a] > > :1:23: > Warning: Accepting non-standard infix type constructor `.' >

Re: [Haskell-cafe] forall and a parse error

2006-11-15 Thread Remi Turk
; HEAD, see our ICFP06 paper. > > Simon > > | -Original Message- > | From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Neil > | Mitchell > | Sent: 03 July 2006 19:44 > | To: Haskell Cafe > | Subject: [Haskell-cafe] forall and a parse error > | >

Re: [Haskell-cafe] forall and a parse error

2006-07-05 Thread David House
On 03/07/06, Neil Mitchell <[EMAIL PROTECTED]> wrote: [1,2] /= [(1,2)] Ah, I figured we were talking at the type level. -- -David House, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/

RE: [Haskell-cafe] forall and a parse error

2006-07-04 Thread Simon Peyton-Jones
r ICFP06 paper. Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neil | Mitchell | Sent: 03 July 2006 19:44 | To: Haskell Cafe | Subject: [Haskell-cafe] forall and a parse error | | Hi, | | I was experimenting with forall and higher rank types

Re: [Haskell-cafe] forall and a parse error

2006-07-03 Thread Neil Mitchell
On 7/3/06, David House <[EMAIL PROTECTED]> wrote: On 03/07/06, Neil Mitchell <[EMAIL PROTECTED]> wrote: > In normal Haskell, I tend to view [x] as equivalent to [(x)] (provided > that x is not a tuple) but in this case it has a different meaning - > albeit both are erronous meanings. How would t

Re: [Haskell-cafe] forall and a parse error

2006-07-03 Thread David House
On 03/07/06, Neil Mitchell <[EMAIL PROTECTED]> wrote: In normal Haskell, I tend to view [x] as equivalent to [(x)] (provided that x is not a tuple) but in this case it has a different meaning - albeit both are erronous meanings. How would tuples make a difference? -- -David House, [EMAIL PROTE

[Haskell-cafe] forall and a parse error

2006-07-03 Thread Neil Mitchell
Hi, I was experimenting with forall and higher rank types briefly, in particular: x :: [forall a . a] This is illegal because of: http://www.haskell.org/ghc/docs/latest/html/users_guide/type-extensions.html#universal-quantification Which is fine, however its surprising to compare the error mes