Re: [Haskell] new to haskell

2005-05-21 Thread Scott Turner
On 2005 May 21 Saturday 17:52, wenduan wrote: > let n = read number This converts type String to Integer. >return (number : rest) This line is building up the list. Put 'n' on the list rather than 'number', so that the list will be numeric. Then when you try "list <- calcula

Re: [Haskell] HaskellForge

2005-05-21 Thread Brian Smith
On 5/13/05, Gour <[EMAIL PROTECTED]> wrote: > So, why not form HaskellForge and thereby form powerful Haskell > alliance, ie. common site which can host many/most present Haskell > projects offering appropriate web & other (eg. darcs) services? > > If we take a look on new HCAR, we can see that m

Re: [Haskell] new to haskell

2005-05-21 Thread Danie Roux
On Sun, May 22, 2005 at 05:52:33AM +0800, wenduan wrote: > hi all, > I'm new to haskell and just reading the "yet another haskell tutorial".I > got stuck on the exercise of chapter 3 Wenduan, All the exercises comes with answers. The answer for this exercise is on page 171. -- Danie Roux *shu

Re: [Haskell] HaskellForge

2005-05-21 Thread Lemmih
On 5/21/05, Sven Panne <[EMAIL PROTECTED]> wrote: > Lemmih wrote: > > On 5/21/05, Sven Panne <[EMAIL PROTECTED]> wrote: > >>I had a look at RubyForge, and it looks very much like a modified GForge > >>(http://gforge.org/). Might this be an option for HaskellForge, too? > > > > Someone would have to

Re: [Haskell] HaskellForge

2005-05-21 Thread Sven Panne
Lemmih wrote: On 5/21/05, Sven Panne <[EMAIL PROTECTED]> wrote: I had a look at RubyForge, and it looks very much like a modified GForge (http://gforge.org/). Might this be an option for HaskellForge, too? Someone would have to hack support for Darcs and HaskellDB in PHP and that someone will

Re: [Haskell] HaskellForge

2005-05-21 Thread Lemmih
On 5/21/05, Sven Panne <[EMAIL PROTECTED]> wrote: > Lemmih wrote: > > I'm currently working on Hackage[1] plus its integration with Cabal, > > and extending it to include SourceForge-like features would definitely > > be desirable. It is, however, a one-man project so don't hold your > > breath. >

Re: [Haskell] new to haskell

2005-05-21 Thread Sebastian Sylvan
On 5/21/05, wenduan <[EMAIL PROTECTED]> wrote: > hi all, > I'm new to haskell and just reading the "yet another haskell tutorial".I > got stuck on the exercise of chapter 3,the problem goes like "repeatedly > prompt the user to input some number until a zero is detected,then > output the sum,produc

[Haskell] Re: new to haskell

2005-05-21 Thread Peter Simons
wenduan writes: > I have an IO action up and running in a module I defined > as following: > calculate = do > putStrLn "Give me a number (or 0 to stop):" > number <- getLine > let n = read number > if n == 0 >then do > return [] >

Re: [Haskell] functional dependency violation?

2005-05-21 Thread Mark Brown
Hi, On 20-May-2005, Conal Elliott <[EMAIL PROTECTED]> wrote: > The program below fails to compile under ghc 6.4, giving the following > error message: > > c:/conal/Eros/Haskell/PTest.hs:13:0: > Illegal instance declaration for `Path (PCompose po pi) a a' > whole whole'' >

[Haskell] new to haskell

2005-05-21 Thread wenduan
hi all, I'm new to haskell and just reading the "yet another haskell tutorial".I got stuck on the exercise of chapter 3,the problem goes like "repeatedly prompt the user to input some number until a zero is detected,then output the sum,product of those numbers and the factorial of each number.

Re: [Haskell] HaskellForge

2005-05-21 Thread Sven Panne
Lemmih wrote: I'm currently working on Hackage[1] plus its integration with Cabal, and extending it to include SourceForge-like features would definitely be desirable. It is, however, a one-man project so don't hold your breath. I had a look at RubyForge, and it looks very much like a modified