aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/type/variance.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/documentation/lux/type/variance.lux32
1 files changed, 32 insertions, 0 deletions
diff --git a/stdlib/source/documentation/lux/type/variance.lux b/stdlib/source/documentation/lux/type/variance.lux
new file mode 100644
index 000000000..7503f9197
--- /dev/null
+++ b/stdlib/source/documentation/lux/type/variance.lux
@@ -0,0 +1,32 @@
+(.module:
+ [library
+ [lux (#- and)
+ ["$" documentation (#+ documentation:)]
+ [control
+ ["<>" parser
+ ["<.>" code]]]
+ [data
+ ["." text (#+ \n)
+ ["%" format (#+ format)]]]
+ [macro
+ ["." template]]]]
+ [\\library
+ ["." /]])
+
+(documentation: /.Co
+ "A constraint for covariant types.")
+
+(documentation: /.Contra
+ "A constraint for contravariant types.")
+
+(documentation: /.In
+ "A constraint for invariant types.")
+
+(.def: .public documentation
+ (.List $.Module)
+ ($.module /._
+ ""
+ [..Co
+ ..Contra
+ ..In]
+ []))