aboutsummaryrefslogtreecommitdiff
path: root/latex-test/src/LinearTypes
diff options
context:
space:
mode:
Diffstat (limited to 'latex-test/src/LinearTypes')
-rw-r--r--latex-test/src/LinearTypes/LinearTypes.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/latex-test/src/LinearTypes/LinearTypes.hs b/latex-test/src/LinearTypes/LinearTypes.hs
new file mode 100644
index 00000000..cb4eb138
--- /dev/null
+++ b/latex-test/src/LinearTypes/LinearTypes.hs
@@ -0,0 +1,14 @@
+{-# LANGUAGE LinearTypes #-}
+module LinearTypes where
+
+-- | Does something unrestricted.
+unrestricted :: a -> b
+unrestricted = undefined
+
+-- | Does something linear.
+linear :: a %1 -> b
+linear = linear
+
+-- | Does something polymorphic.
+poly :: a %m -> b
+poly = poly