[Haskell] Creating a factorial function in GHC

2012-05-09 Thread Angus Comber
I am trying to create a factorial function in GHC. I am following the online learnyouahaskell.com book (specifically types-and-typeclasses page). Bear in mind this is my day 1 of learning Haskell. The book suggests: factorial :: Integer - Integer factorial n = product [1..n] But if I enter

Re: [Haskell] Creating a factorial function in GHC

2012-05-09 Thread Henning Thielemann
On Wed, 9 May 2012, Angus Comber wrote: I am trying to create a factorial function in GHC. I am following the online learnyouahaskell.com book (specifically types-and-typeclasses page). Bear in mind this is my day 1 of learning Haskell. Then beginn...@haskell.org might be a better place to