diff --git a/hlint/README.md b/hlint/README.md new file mode 100644 index 0000000..4298492 --- /dev/null +++ b/hlint/README.md @@ -0,0 +1,12 @@ +# Hlint Rules Aiming To Promote Stability + +## Wishlist Of Hlint Features + +There are some features we do not have access to from hlint, but that would help us write more +rules. + +1. A default typeclass method is overridden. + +For example, the `Eq` typeclass has a method, `(/=)`, that is being considered for removal from the +class. To promote stability, we would like to be able to write a rule that would trigger a warning +when this method is manually defined. However we cannot, as of this writing, construct such a rule. diff --git a/hlint/stability_hlint.yaml b/hlint/stability_hlint.yaml new file mode 100644 index 0000000..6cf22b5 --- /dev/null +++ b/hlint/stability_hlint.yaml @@ -0,0 +1,9 @@ +# Turn off all rules by default so we only include our explicit configuration. +- ignore: { } + +# Turn on restricted module configurations to be warnings. +- warn: {name: "Avoid restricted module"} + +- modules: + - {name: Control.Monad.Trans.Error, within: []} # This module is deprecated. + - {name: Control.Monad.Trans.List, within: []} # This module is deprecated.