Re: [Haskell-cafe] a newbie's question

2005-04-22 Thread David Waern
On Thu, Apr 21, 2005 at 09:21:18PM +0200, Pierre Barbier de Reuille wrote: > You may want to have a look there : > > http://www.haskell.org/libraries/#ide > > It references some tools to develop in haskell ... You may also want to check out Haste: http://haste.dyndns.org:8080 It is an IDE for h

Re: [Haskell-cafe] a newbie's question

2005-04-21 Thread Alexandre Weffort Thenorio
but I hate when you try tabbing and it does it all wrong). Best Regards NooK - Original Message - From: "Keith Wansbrough" <[EMAIL PROTECTED]> To: "SCOTT J." <[EMAIL PROTECTED]> Cc: Sent: Thursday, April 21, 2005 9:13 PM Subject: Re: [Haskell-cafe] a newbie

Re: [Haskell-cafe] a newbie's question

2005-04-21 Thread Pierre Barbier de Reuille
You may want to have a look there : http://www.haskell.org/libraries/#ide It references some tools to develop in haskell ... Pierre Keith Wansbrough a écrit : [sorry if you receive this twice; mailing list problems] SCOTT J. wrote: Thanks for your assistance. I'm using now Notepad.exe . Before I di

Re: [Haskell-cafe] a newbie's question

2005-04-21 Thread Keith Wansbrough
[sorry if you receive this twice; mailing list problems] SCOTT J. wrote: Thanks for your assistance. I'm using now Notepad.exe . Before I did it in Wordpad. I use Windows XP. I'm trying to solve this nasty problem WordPad probably saved your file in RTF rather than TXT. Keep using Notepad for

Re: [Haskell-cafe] a newbie's question

2005-04-21 Thread Tom Harke
You forgot to bind a name to your do-expression. Try: foo = do x <- a y <- b return (x,y) On Thu, 21 Apr 2005, SCOTT J. wrote: ] Hi, ] ] I'm beginning to study Haskell, For the following ] ] a = [1,2,3] ] ] b = "there" ] ] ] ] do x <- a ] ] y <- b ] ] retu

Re: [Haskell-cafe] a newbie's question

2005-04-21 Thread SCOTT J.
: [Haskell-cafe] a newbie's question Hi, I'm trying to investigate the list monad. I program   instance Monad [] where xs >= f  =  concat ( map f xs ) return x = [x] a = [1,2,3] b = "there" do { x  <-  a  y  <-  b re

[Haskell-cafe] a newbie's question

2005-04-21 Thread SCOTT J.
Hi, I'm trying to investigate the list monad. I program   instance Monad [] where xs >= f  =  concat ( map f xs ) return x = [x] a = [1,2,3] b = "there" do { x  <-  a  y  <-  b return (x , y) }  And I get the error Syntax error in input (unexpected backslash (lambda))   Jan

Re: [Haskell-cafe] a newbie's question

2005-04-21 Thread robert dockins
Hi, I'm beginning to study Haskell, For the following a = [1,2,3] b = "there" do x <- a y <- b return (x , y) Winhugs cannot run it. Gives Syntax error in input (unexpected backslash ( lambda)) Your problem is that you're using monads to grab the contents of a and b, while a and b are

Re: [Haskell-cafe] a newbie's question

2005-04-21 Thread Paul Hudak
Thomas Davie wrote: On Apr 21, 2005, at 3:47 PM, SCOTT J. wrote: Hi, I'm beginning to study Haskell, For the following a = [1,2,3] b = "there" do x <- a y <- b return (x , y) Winhugs cannot run it. Gives Syntax error in input (unexpected backslash ( lambda)) Your problem is that you're using

Re: [Haskell-cafe] a newbie's question

2005-04-21 Thread Thomas Davie
On Apr 21, 2005, at 3:47 PM, SCOTT J. wrote: Hi, I'm beginning to study Haskell, For the following a = [1,2,3] b = "there" do x <- a y <- b return (x , y) Winhugs cannot run it. Gives Syntax error in input (unexpected backslash ( lambda)) Your problem is that you're using monads to grab

[Haskell-cafe] a newbie's question

2005-04-21 Thread SCOTT J.
Hi,   I'm beginning to study Haskell, For the following   a = [1,2,3] b = "there"   do x <- a   y <- b  return (x , y) Winhugs cannot run it. Gives  Syntax error in input (unexpected backslash (lambda))

Re: a newbie's question

2001-10-14 Thread Fergus Henderson
On 12-Oct-2001, Song Li <[EMAIL PROTECTED]> wrote: > Hi, there, >Could anybody explain what does this type defination mean : > >data xxx a = xxx (a ->b) > >looks xxx can use itself as constructor(like tree) but change the > type.. Interpreted literally, that declaration would act

a newbie's question

2001-10-12 Thread Song Li
Hi, there, Could anybody explain what does this type defination mean : data xxx a = xxx (a ->b) looks xxx can use itself as constructor(like tree) but change the type.. Thanks! Song ___ Haskell-Cafe mailing list [EMAIL PROTECTED] ht