Express >< operator more elegant
This commit is contained in:
parent
cc53496bab
commit
ae4a694150
1 changed files with 2 additions and 2 deletions
|
@ -36,8 +36,8 @@ instance Transformable TransformMap where
|
||||||
transform = (*.*)
|
transform = (*.*)
|
||||||
|
|
||||||
(><) :: (Transform t, Transformable a) => t -> a -> a
|
(><) :: (Transform t, Transformable a) => t -> a -> a
|
||||||
t >< a = transform (toMap t) a
|
(><) = transform . toMap
|
||||||
|
|
||||||
(>:<) :: (ReversibleTransform t, Transformable a) => t -> a -> a
|
(>:<) :: (ReversibleTransform t, Transformable a) => t -> a -> a
|
||||||
t >:< a = transform (toMap' t) a
|
(>:<) = transform . toMap'
|
||||||
|
|
||||||
|
|
Reference in a new issue