mirror of
https://github.com/github/semantic.git
synced 2025-01-05 14:11:33 +03:00
Give default definitions for &> and <&.
This commit is contained in:
parent
22177b0940
commit
340a58e44e
@ -8,5 +8,7 @@ class Alternative f => Conjunctive f where
|
|||||||
(<&>) :: f (a -> b) -> f a -> f b
|
(<&>) :: f (a -> b) -> f a -> f b
|
||||||
|
|
||||||
(<&) :: f a -> f b -> f a
|
(<&) :: f a -> f b -> f a
|
||||||
|
a <& b = const <$> a <&> b
|
||||||
|
|
||||||
(&>) :: f a -> f b -> f b
|
(&>) :: f a -> f b -> f b
|
||||||
|
a &> b = identity <$ a <&> b
|
||||||
|
Loading…
Reference in New Issue
Block a user