aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/data/sum.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/data/sum.lux')
-rw-r--r--stdlib/source/library/lux/data/sum.lux14
1 files changed, 7 insertions, 7 deletions
diff --git a/stdlib/source/library/lux/data/sum.lux b/stdlib/source/library/lux/data/sum.lux
index 193f25a05..7c8696012 100644
--- a/stdlib/source/library/lux/data/sum.lux
+++ b/stdlib/source/library/lux/data/sum.lux
@@ -7,7 +7,7 @@
(template [<right?> <name>]
[(def: .public (<name> value)
- (All [left right]
+ (All (_ left right)
(-> <name> (Or left right)))
(0 <right?> value))]
@@ -15,7 +15,7 @@
[#1 right])
(def: .public (either on_left on_right)
- (All [a b c]
+ (All (_ a b c)
(-> (-> a c) (-> b c)
(-> (Or a b) c)))
(function (_ input)
@@ -24,7 +24,7 @@
(0 #1 r) (on_right r))))
(def: .public (then on_left on_right)
- (All [l l' r r']
+ (All (_ l l' r r')
(-> (-> l l') (-> r r')
(-> (Or l r) (Or l' r'))))
(function (_ input)
@@ -34,7 +34,7 @@
(template [<name> <side> <right?>]
[(def: .public (<name> items)
- (All [a b] (-> (List (Or a b)) (List <side>)))
+ (All (_ a b) (-> (List (Or a b)) (List <side>)))
(case items
#.End
#.End
@@ -50,7 +50,7 @@
)
(def: .public (partition xs)
- (All [a b] (-> (List (Or a b)) [(List a) (List b)]))
+ (All (_ a b) (-> (List (Or a b)) [(List a) (List b)]))
(case xs
#.End
[#.End #.End]
@@ -62,7 +62,7 @@
(0 #1 x') [lefts (#.Item x' rights)]))))
(def: .public (equivalence left right)
- (All [l r] (-> (Equivalence l) (Equivalence r) (Equivalence (Or l r))))
+ (All (_ l r) (-> (Equivalence l) (Equivalence r) (Equivalence (Or l r))))
(implementation
(def: (= reference sample)
(case [reference sample]
@@ -76,7 +76,7 @@
false))))
(def: .public (hash left right)
- (All [l r] (-> (Hash l) (Hash r) (Hash (Or l r))))
+ (All (_ l r) (-> (Hash l) (Hash r) (Hash (Or l r))))
(implementation
(def: &equivalence
(..equivalence (\ left &equivalence)