Fix typo in hlint rule (#3926)

This commit is contained in:
Rohan Jacob-Rao 2019-12-26 16:23:04 -05:00 committed by GitHub
parent f22d52a2ff
commit f04ce1a3c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -438,7 +438,7 @@
- hint: {lhs: case x of Some a -> f a; None -> y, rhs: optional y f x, side: isAtom y && isAtom f, name: Replace case with optional}
- warn: {lhs: if isNone x then y else f (fromSome x), rhs: optional y f x}
- warn: {lhs: if isSome x then f (fromSome x) else y, rhs: optional y f x}
- warn: {lhs: optinoal None (Some . f), rhs: fmap f}
- warn: {lhs: optional None (Some . f), rhs: fmap f}
- hint: {lhs: map fromSome . filter isSome , rhs: DA.Optional.catOptionals}
- warn: {lhs: x == None , rhs: isNone x}
- warn: {lhs: None == x , rhs: isNone x}