Express >< operator more elegant

This commit is contained in:
Matthias Schiffer 2011-06-26 21:07:41 +02:00
parent cc53496bab
commit ae4a694150

View file

@ -36,8 +36,8 @@ instance Transformable TransformMap where
transform = (*.*)
(><) :: (Transform t, Transformable a) => t -> a -> a
t >< a = transform (toMap t) a
(><) = transform . toMap
(>:<) :: (ReversibleTransform t, Transformable a) => t -> a -> a
t >:< a = transform (toMap' t) a
(>:<) = transform . toMap'