aboutsummaryrefslogtreecommitdiff
path: root/latex-test/src/UnboxedStuff/UnboxedStuff.hs
diff options
context:
space:
mode:
Diffstat (limited to 'latex-test/src/UnboxedStuff/UnboxedStuff.hs')
-rw-r--r--latex-test/src/UnboxedStuff/UnboxedStuff.hs18
1 files changed, 18 insertions, 0 deletions
diff --git a/latex-test/src/UnboxedStuff/UnboxedStuff.hs b/latex-test/src/UnboxedStuff/UnboxedStuff.hs
new file mode 100644
index 00000000..bd1b1302
--- /dev/null
+++ b/latex-test/src/UnboxedStuff/UnboxedStuff.hs
@@ -0,0 +1,18 @@
+{-# LANGUAGE UnboxedSums, UnboxedTuples #-}
+module UnboxedStuff where
+
+data X
+data Y
+data Z
+
+-- * Unboxed type constructors
+
+unboxedUnit :: (# #) -> (# #)
+unboxedUnit = undefined
+
+unboxedTuple :: (# X, Y #) -> (# X, Y, Z #)
+unboxedTuple = undefined
+
+unboxedSum :: (# X | Y #) -> (# X | Y | Z #)
+unboxedSum = undefined
+