diff options
author | Ben Sima <ben@bsima.me> | 2020-12-10 08:46:10 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-12-10 08:46:10 -0500 |
commit | 1927461c3a649a7696fc1749fb319ff31efab241 (patch) | |
tree | 77394a75fa8ebc0d08bbe840c160aa693a37cd6a | |
parent | 609a119e934630954773a2c53b6a8e51f66c17ca (diff) |
Add alpha-based hlints
-rw-r--r-- | .hlint.yaml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.hlint.yaml b/.hlint.yaml index 1e52f79..3706180 100644 --- a/.hlint.yaml +++ b/.hlint.yaml @@ -55,3 +55,23 @@ # Define some custom infix operators # - fixity: infixr 3 ~^#^~ + +- hint: + lhs: 'f $ x' + note: 'Use `<|`' + rhs: 'f <| x' + +- hint: + lhs: 'x & f' + note: 'Use `|>`' + rhs: 'f |> x' + +- hint: + lhs: 'f . g' + note: 'Use `<.`' + rhs: 'f <. g' + +- hint: + lhs: 'f <. g' + note: 'Use `.>` for natural reading direction' + rhs: 'g .> f' |