[Haskell] PADL'06 Call for Papers

2005-07-13 Thread Logic Programming Rsrch Association
- CALL FOR PAPERS!!! Eighth International Symposium on Practical Aspects of Declarative Languages 2006 (PADL '06) http://www.cs.bro

[Haskell] Template id function

2005-07-13 Thread Mads Lindstrøm
Hi I am trying to learn Meta Haskell. One thing I want to do is create an identity function. It should get a type constructor as input and return the same type constructor as output. It should be possible to do: $(idDecl data Foo = Foo Int) and it should "return": data Foo = Foo Int Is thi

Re: [Haskell] Template id function

2005-07-13 Thread Tomasz Zielonka
On Wed, Jul 13, 2005 at 08:50:21PM +0200, Mads Lindstr?m wrote: > I am trying to learn Meta Haskell. One thing I want to do is create an > identity function. It should get a type constructor as input and return > the same type constructor as output. It should be possible to do: > > $(idDecl data

[Haskell] offside rule question

2005-07-13 Thread Frederik Eaton
Compiling the following module (with ghc) fails with error message "parse error (possibly incorrect indentation)", pointing to the let statement. The error goes away when I indent the lines marked "--*". But I don't understand how what I've written could be ambiguous. If I am inside a parenthesize

Re: [Haskell] offside rule question

2005-07-13 Thread Lennart Augustsson
That's how it is defined in the Haskell definition. But there is a reason. The offside rule (or whatever yoy want to call it) is there to give visual cues. If you were allowed to override these easily just because it's parsable in principle then your code would no longer have these visual cues

Re: [Haskell] offside rule question

2005-07-13 Thread Frederik Eaton
Huh, that seems patronizing. Well at least I can override it with {}. Thanks, Frederik On Thu, Jul 14, 2005 at 02:42:53AM +0200, Lennart Augustsson wrote: > That's how it is defined in the Haskell definition. > > But there is a reason. The offside rule (or whatever yoy want to > call it) is th

Re: [Haskell] offside rule question

2005-07-13 Thread Lennart Augustsson
The offside rule is patronizing. :) It tries to force you to lay out your program in a certain way. If you like that way, good. If you don't like that way, you can use {;} as you say. -- Lennart Frederik Eaton wrote: Huh, that seems patronizing. Well at least I can override it with {}.