Add a flag -fwarn-missing-local-sigs, and improve -fwarn-mising-signatures
authorsimonpj@microsoft.com <unknown>
Sun, 19 Sep 2010 15:33:27 +0000 (15:33 +0000)
committersimonpj@microsoft.com <unknown>
Sun, 19 Sep 2010 15:33:27 +0000 (15:33 +0000)
commite8fa04cf0d656c4a2ff737278b8cea9fce3b5a2b
tree96e6fae220b61ffeb4070d652a8b53fd0ab4a79f
parente4b5abb6ddfd07a7f95455c94faf2946a1bc078e
Add a flag -fwarn-missing-local-sigs, and improve -fwarn-mising-signatures

The new flag prints out a warning if you have a local,
polymorphic binding that lacks a type signature. It's meant
to help with the transition to the new typechecker, which
discourages local let-generalisation.

At the same time I moved the missing-signature code to TcHsSyn,
where it takes place as part of zonking.  That way the
types are reported after all typechecking is complete,
thereby fixing Trac #3696.  (It's even more important for
local bindings, which is why I made the change.)
compiler/hsSyn/HsBinds.lhs
compiler/main/DynFlags.hs
compiler/typecheck/TcBinds.lhs
compiler/typecheck/TcHsSyn.lhs
compiler/typecheck/TcRnDriver.lhs
compiler/typecheck/TcRnMonad.lhs
compiler/typecheck/TcRnTypes.lhs