[Haskell-cafe] loop problem

Karl Voelker karl at karlv.net
Sat May 10 14:38:34 UTC 2014

On Sat, May 10, 2014, at 07:32 AM, Roelof Wobben wrote:

So somthing is wrong at this line x n = n * n

But its looking well to me.

That line would be fine as a definition at the top level. But to nest a
definition inside an expression, you need to introduce it with "let" or

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140510/885d4839/attachment.html>

More information about the Haskell-Cafe mailing list