About -Wall option
Wolfgang Jeltsch
g9ks157k at acme.softbase.org
Wed Dec 5 17:47:40 EST 2007
Am Mittwoch, 5. Dezember 2007 13:43 schrieb Luis Cabellos:
> Hi,
>
> I have a question, what's the best way to program?
> - put all the signatures in the Haskell Code?
> - Only put the type signatures needed to compile (like monomorphism errors
> or ambiguous signature)?
>
> Until now, I prefer the second one, but when I use the -Wall option,
> there's a lot of complains about type signature. Maybe the type signature
> is something that not need to be checked as a warning.
>
> But if the best practice is to put all the signatures, I found that Cabal
> generated code need to be fixed, because -Wall complains about it also.
Inserting all type signatures is definitely best practice.
Best wishes,
Wolfgang
More information about the Glasgow-haskell-users
mailing list