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
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 fi