mirror of
https://github.com/haskell-nix/hnix.git
synced 2024-09-17 09:47:27 +03:00
hlint: add join
rules
This commit is contained in:
parent
4aba5c97c3
commit
0093609c1c
20
.hlint.yaml
20
.hlint.yaml
@ -2752,3 +2752,23 @@
|
||||
note: "Use `one`"
|
||||
rhs: one x
|
||||
|
||||
- hint:
|
||||
lhs: "join . fmap join"
|
||||
note: "Monad law"
|
||||
rhs: join . join
|
||||
|
||||
- hint:
|
||||
lhs: "join . fmap pure"
|
||||
note: "Monad law"
|
||||
rhs: id
|
||||
|
||||
- hint:
|
||||
lhs: "join . pure"
|
||||
note: "Monad law"
|
||||
rhs: id
|
||||
|
||||
- hint:
|
||||
lhs: "join . (f <<$>>)"
|
||||
note: "Monad law"
|
||||
rhs: fmap f . join
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user