mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
Fix typo in hlint rule (#3926)
This commit is contained in:
parent
f22d52a2ff
commit
f04ce1a3c8
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user