aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorEduardo Julian2017-01-17 19:43:51 -0400
committerEduardo Julian2017-01-17 19:43:51 -0400
commit766bb3c24838072b0fc83505a6f6c09444faa8c6 (patch)
tree0aa032b435bbf8284d60e652f8778499e4444acb /stdlib
parent4a039138dd87e2c2f232f9ce7198b4e36ca403f9 (diff)
- Added some type combinators for type constructors.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/source/lux.lux9
1 files changed, 9 insertions, 0 deletions
diff --git a/stdlib/source/lux.lux b/stdlib/source/lux.lux
index 8af215b43..76093eb29 100644
--- a/stdlib/source/lux.lux
+++ b/stdlib/source/lux.lux
@@ -5712,3 +5712,12 @@
(#;Left (~ (text$ (Text/append "Wrong syntax for " name))))
)))))
))
+
+(type: #export (<&> f g)
+ (All [a] (& (f a) (g a))))
+
+(type: #export (<|> f g)
+ (All [a] (| (f a) (g a))))
+
+(type: #export (<.> f g)
+ (All [a] (f (g a))))