summaryrefslogtreecommitdiff
path: root/.hlint.yaml
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-12-10 08:46:10 -0500
committerBen Sima <ben@bsima.me>2020-12-10 08:46:10 -0500
commit1927461c3a649a7696fc1749fb319ff31efab241 (patch)
tree77394a75fa8ebc0d08bbe840c160aa693a37cd6a /.hlint.yaml
parent609a119e934630954773a2c53b6a8e51f66c17ca (diff)
Add alpha-based hlints
Diffstat (limited to '.hlint.yaml')
-rw-r--r--.hlint.yaml20
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'