How to change GHC error warning

I am using GHC in a haskell-stack project. I would like to clear the warning about missing fields before the compilation error.

I tried to do the following, but that will not work.

{-# OPTIONS_GHC -Werror=missing-fields #-} -- DOESN'T WORK

Could you tell me how to remove the missing fields, warning about a compilation error?

+4
source share
2 answers

GHC 8.2.1 . stack, LTS 8.0.2. GHC ( stack, compiler: ghc-8.2.1), -Werror -Wmissing-fields , . ( , missing-methods, , .)

+7

. , . , .

0

Source: https://habr.com/ru/post/1687943/


All Articles