on master help sign in
Defined Alternative.
314bcf1startling
lib/Prelude/Applicative.idr+3−1
@@ -11,4 +11,6 @@ class Functor f => Applicative (f : Type -> Type) where
11 pure : a -> f a
11 pure : a -> f a
12 (<$>) : f (a -> b) -> f a -> f b
12 (<$>) : f (a -> b) -> f a -> f b
13
13
14−
14+class Applicative f => Alternative (f : Type -> Type) where
15+ empty : f a
16+ (<|>) : f a -> f a -> f a