2009-09-23 21:56:15 +04:00
|
|
|
{-
|
|
|
|
hlint configuration for hledger
|
|
|
|
|
2016-08-08 18:30:22 +03:00
|
|
|
https://github.com/ndmitchell/hlint#readme
|
|
|
|
https://github.com/ndmitchell/hlint/issues/256
|
2009-09-23 21:56:15 +04:00
|
|
|
|
2016-08-08 18:30:22 +03:00
|
|
|
Examples:
|
2009-09-23 21:56:15 +04:00
|
|
|
ignore "Eta reduce" = "" - suppress all eta reduction suggestions.
|
|
|
|
ignore "Eta reduce" = Data.List Prelude - suppress eta reduction hints in the Prelude and Data.List modules.
|
|
|
|
ignore = Data.List.map - don't give any hints in the function Data.List.map.
|
|
|
|
error = Data.List.map - any hint in the function is an error.
|
|
|
|
error "Use concatMap" = "" - the hint to use concatMap is an error.
|
|
|
|
warn "Use concatMap" = "" - the hint to use concatMap is a warning.
|
|
|
|
|
|
|
|
-}
|
|
|
|
|
2016-08-08 18:30:22 +03:00
|
|
|
{-# PackageImports #-}
|
|
|
|
import "hlint" HLint.Builtin.All
|
|
|
|
-- import "hlint" HLint.Default
|
|
|
|
|
2009-09-23 22:06:28 +04:00
|
|
|
ignore "Use camelCase" = ""
|
2016-08-08 18:31:01 +03:00
|
|
|
ignore "Redundant do" = ""
|
2016-08-08 18:30:22 +03:00
|
|
|
|