Change review operator
This commit is contained in:
parent
e980b3602d
commit
810404b305
|
@ -66,15 +66,15 @@ public export
|
||||||
review : Review s a -> a -> s
|
review : Review s a -> a -> s
|
||||||
review l = reviews l id
|
review l = reviews l id
|
||||||
|
|
||||||
infixr 8 >.
|
infixr 8 #^
|
||||||
|
|
||||||
||| Turn an optic around to inject a focus value into the larger data structure.
|
||| Turn an optic around to inject a focus value into the larger data structure.
|
||||||
||| This function takes a `Review`, which can also be a `Prism` or `Iso`.
|
||| This function takes a `Review`, which can also be a `Prism` or `Iso`.
|
||||||
|||
|
|||
|
||||||
||| This is the operator form of `review`.
|
||| This is the operator form of `review`.
|
||||||
public export
|
public export
|
||||||
(>.) : a -> Review s a -> s
|
(#^) : Review s a -> a -> s
|
||||||
(>.) x l = review l x
|
(#^) = review
|
||||||
|
|
||||||
||| Flip a `Prism`, `Iso` or `Review` to form a `Getter` in the other direction.
|
||| Flip a `Prism`, `Iso` or `Review` to form a `Getter` in the other direction.
|
||||||
public export
|
public export
|
||||||
|
|
Loading…
Reference in a new issue