From 1927461c3a649a7696fc1749fb319ff31efab241 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 10 Dec 2020 08:46:10 -0500 Subject: Add alpha-based hlints --- .hlint.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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' -- cgit v1.2.3