hlint: add join rules

This commit is contained in:
Anton-Latukha 2021-10-29 00:09:46 +03:00
parent 4aba5c97c3
commit 0093609c1c
No known key found for this signature in database
GPG Key ID: 3D84C07E91802E41

View File

@ -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