Mysterious error from ghc6.2

Simon Peyton-Jones simonpj at microsoft.com
Thu Mar 11 05:54:16 EST 2004


Ha.  A long-standing infelicity, thank you.  I've fixed the HEAD.

	Simon, this could go in the 6.2 branch I believe

Simon

| -----Original Message-----
| From: glasgow-haskell-bugs-bounces at haskell.org
[mailto:glasgow-haskell-bugs-
| bounces at haskell.org] On Behalf Of George Russell
| Sent: 11 March 2004 10:32
| To: glasgow-haskell-bugs at haskell.org
| Subject: Mysterious error from ghc6.2
| 
| # ghc -c FunnyError.hs
| 
| FunnyError.hs:7:
|      Couldn't match `Bool' against `[Char]'
| 	Expected type: Bool
| 	Inferred type: [Char]
|      In the definition of `b': b x "Foo" = ()
|      In the definition for method `b'
| 
| FunnyError.hs:9:
|      tcLookup: `FunnyError.$dmb' is not in scope
|      In the definition of `b': b = FunnyError.$dmb
|      In the definition for method `b'
|      In the instance declaration for `A Int'
| 
| 
| The first error is correct, but the second error message is most
peculiar,
| is it not?


More information about the Glasgow-haskell-bugs mailing list