Stuart Cook wrote: > On Mon, Mar 2, 2009 at 12:35 AM, Achim Schneider <[email protected]> wrote: >> -Wall? The number of -W options enabled should scale (at least) >> linearly with code size. > > To make this a little more clear: > > You should probably be using the -Wall compiler option, which will > produce a message for code constructs that the compiler finds > suspicious. > > In your case you should see three relevant warnings: > > 1. "moverFromWord8s" is defined but not used > 2. "moverFromWord8s" has no explicit type signature > 3. "movesFromWord8s" has a non-exhaustive pattern match
And that warning #3 is the one that you really should care about. It'll save you. -- John > > > Stuart > _______________________________________________ > Haskell-Cafe mailing list > [email protected] > http://www.haskell.org/mailman/listinfo/haskell-cafe > _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
