The line numbers used in the warnings that report when the defaulting
rule kicks in, is a bit off (looks like it is using the line no of the
module),
e.g.,
sof$ cat def.hs
module Pred where
pred = if (1+3) == 5 then 'a' else 'b'
sof$ ghc-4.08.1 -c -Wall def.hs
def.hs:1: Warning: definition but no type signature for `pred'
def.hs:1: Warning: Defaulting `Num a' to type `Integer'
sof$
The same buglet also applies to the no-type-sig warnings; this is
with ghc-4.08 (and 4.05)
--sigbjorn
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs