[Haskell-beginners] Error Loading Stdm.lhs in Haskell platform 2012
eugene.perederey at gmail.com
Tue Sep 4 08:46:49 CEST 2012
What version of ghc are you using?
In recent versions ghc doesn't support pattern matching of expressions
You can rewrite that factorial function as
factorial n = n * factorial (n-1)
On 3 September 2012 22:08, Iwan Awaludin <awaludin at gmail.com> wrote:
> Dear Sir/Madam
> I Installed Haskell Platform 2012.2.0.0 for Windows and try to load Stdm.lhs
> which is downloaded from
> I have this error:
> stdm.lhs:1160:14: Parse error in pattern: n + 1
> Failed, modules loaded: none.
> Is there anything I should do to make it right?
> Thank you.
> Iwan Awaludin
> Beginners mailing list
> Beginners at haskell.org
More information about the Beginners