Skip to content

Commit 18059fe

Browse files
committed
fix(HLint): configure HLint to require 'pure' instead of 'return'
1 parent 5220063 commit 18059fe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.hlint.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@
7676
#
7777
# Will suggest replacing "wibbleMany [myvar]" with "wibbleOne myvar"
7878
# - error: {lhs: "wibbleMany [x]", rhs: wibbleOne x}
79+
- error:
80+
{ note: Prefer pure to reduce Monad constraint
81+
, lhs: return x
82+
, rhs: pure x
83+
}
84+
7985
- error:
8086
name: "Use mkPrimVector"
8187
lhs: "Data.Vector.Primitive.Vector"

0 commit comments

Comments
 (0)