Re: Ambiguous Type Error

1998-01-05 Thread Simon L Peyton Jones
I have enclosed below a test file that causes an error that puzzles me. Both GHC and Hugs kick it out, so at least they agree; however, I must admit that I don't understand it. Yes, it is a bit confusing, and it took me a few minutes to see what is going on. Here's your problem: data

Re: Ambiguous Type Error

1998-01-05 Thread David Barton
Simon: Thanks a million; that's just what I needed. Yes, I know the context on the type doesn't do anything. I just got in the habit of putting them in when I thought they did, and I haven't trained myself out of it yet. It seems useful documentation, if nothing else; however, if Standard

Ambiguous Type Error

1997-12-22 Thread David Barton
I have enclosed below a test file that causes an error that puzzles me. Both GHC and Hugs kick it out, so at least they agree; however, I must admit that I don't understand it. GHC gives the following error: test.hs:1: Ambiguous context `{Physical taZ0}' `Physical taZ0' arising