Excellent point.

I've updated 4.08 to do both of these.

Simon: it's in your 408 source tree: could you commit?  Can you
ensure this ends up in the HEAD too.

Simon

| -----Original Message-----
| From: Sigbjorn Finne 
| Sent: 02 November 2000 23:26
| To: '[EMAIL PROTECTED]'
| Subject: Line numbers in 'defaulting' warnings
| 
| 
| 
| 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
| 

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to