[Haskell-cafe] Best idiom for avoiding Defaulting warnings with
ghc -Wall -Werror ??
droundy at darcs.net
Fri Jun 22 14:42:56 EDT 2007
On Fri, Jun 22, 2007 at 11:37:15AM -0700, Dave Bayer wrote:
> GHC issues a "Warning: Defaulting the following constraint(s) to type
> `Int'" for the definition of z.
Why don't you just use -fno-warn-type-defaults? Warnings are just that:
warnings. If you believe the defaulting matches what you want to do, then
you don't need the warning.
ghc -Werr -Wall is a often good idea, but if you prefer a different
programming style (e.g. no top-level type declarations required), ghc gives
you the flexibility to do that.
Department of Physics
Oregon State University
More information about the Haskell-Cafe