aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/abstract/functor.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/abstract/functor.lux')
-rw-r--r--stdlib/source/library/lux/abstract/functor.lux14
1 files changed, 7 insertions, 7 deletions
diff --git a/stdlib/source/library/lux/abstract/functor.lux b/stdlib/source/library/lux/abstract/functor.lux
index 78b647a59..a43110453 100644
--- a/stdlib/source/library/lux/abstract/functor.lux
+++ b/stdlib/source/library/lux/abstract/functor.lux
@@ -4,7 +4,7 @@
(type: .public (Functor f)
(Interface
- (: (All [a b]
+ (: (All (_ a b)
(-> (-> a b)
(-> (f a) (f b))))
each)))
@@ -13,10 +13,10 @@
(f (Fix f)))
(type: .public (Or f g)
- (All [a] (.Or (f a) (g a))))
+ (All (_ a) (.Or (f a) (g a))))
(def: .public (sum (^open "f\.") (^open "g\."))
- (All [F G] (-> (Functor F) (Functor G) (Functor (..Or F G))))
+ (All (_ F G) (-> (Functor F) (Functor G) (Functor (..Or F G))))
(implementation
(def: (each f fa|ga)
(case fa|ga
@@ -27,20 +27,20 @@
(#.Right (g\each f ga))))))
(type: .public (And f g)
- (All [a] (.And (f a) (g a))))
+ (All (_ a) (.And (f a) (g a))))
(def: .public (product (^open "f\.") (^open "g\."))
- (All [F G] (-> (Functor F) (Functor G) (Functor (..And F G))))
+ (All (_ F G) (-> (Functor F) (Functor G) (Functor (..And F G))))
(implementation
(def: (each f [fa ga])
[(f\each f fa)
(g\each f ga)])))
(type: .public (Then f g)
- (All [a] (f (g a))))
+ (All (_ a) (f (g a))))
(def: .public (composite (^open "f\.") (^open "g\."))
- (All [F G] (-> (Functor F) (Functor G) (Functor (..Then F G))))
+ (All (_ F G) (-> (Functor F) (Functor G) (Functor (..Then F G))))
(implementation
(def: (each f fga)
(f\each (g\each f) fga))))