[Haskell-cafe] Strange type error with associated type synonyms
bulat.ziganshin at gmail.com
Wed May 27 18:15:05 EDT 2009
Thursday, May 28, 2009, 2:06:36 AM, you wrote:
Prelude>> let a = 'a'; b = "b" in a==b
> Couldn't match expected type `Char' against inferred type `[Char]'
> Is the type of 'a' wrong or that of 'b'?
it is not important, well, at least we can live with it. Compiler
First argument of == should be of type String
while a is of type Char
and then it's user's problem to decide whether he need to fix call or
argument. only some interactive IDE may allow user to select term to
fix and then give him message tuned to this exact term
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe