Impact on style of GHC -Wall

前端 未结 6 492
囚心锁ツ
囚心锁ツ 2021-02-02 10:16

It is considered good practice to enable GHC warnings with -Wall. However, I\'ve found out that fixing those warnings has a negative effect for some types of code c

6条回答
  •  [愿得一人]
    2021-02-02 10:44

    There is also the much less intrusive -W option, which enables a set of reasonable warnings mostly related to general coding style (unused imports, unused variables, incomplete pattern matches, etc.).

    In particular it does not include the two warnings you mentioned.

提交回复
热议问题