1

Is it possible for hlint to enforce the following:

If I have

data Foo = Foo
  {bar :: Bar
  , baz :: Baz
  , quux :: Quux
  }

but it should be

data Foo = Foo
  {bar :: !Bar
  , baz :: !Baz
  , quux :: !Quux
  }

Is there a way for hlint to enforce that?

3
  • So you want to make all fields strict for all records you define? Nov 16 at 9:31
  • yes, unless I explicitly ignore the hlint rule Nov 16 at 10:04
  • 3
    Notice there is an extension StrictData which you can activate in you cabal file of moduel {-#LANGUAGE StrictData#-}
    – lsmor
    Nov 16 at 13:06

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.