[Haskell-cafe] Re: [Haskell] What's up with this Haskell runtime error message:

ihope ihope127 at gmail.com
Wed Apr 5 15:33:18 EDT 2006

On 4/5/06, Michael Goodrich <michael.goodrich at gmail.com> wrote:
> Looks like my calulation involves a self referential set of definitions.
>  Is Haskell not able to deal with a self referential set of definitions?

Yes, it is, but not if that definition doesn't evaluate to a "proper"
value. For example:

main = do
  print x
  where x = 3 * x^2

What do you expect this to do?

It may help if you toss us the offending code.

More information about the Haskell-Cafe mailing list