aboutsummaryrefslogtreecommitdiff
path: root/tests/extensions/TypeOperators.hs
diff options
context:
space:
mode:
authorDavid Waern <davve@dtek.chalmers.se>2007-10-09 16:14:05 +0000
committerDavid Waern <davve@dtek.chalmers.se>2007-10-09 16:14:05 +0000
commit0f578158c1745bd98f940c2124c3463055a400b6 (patch)
treeaa2d319129893afbc610a4e3891fb8e686cab341 /tests/extensions/TypeOperators.hs
parent67f4209e6734573594f6eb7f562219424427e128 (diff)
Add a simple test suite
Diffstat (limited to 'tests/extensions/TypeOperators.hs')
-rw-r--r--tests/extensions/TypeOperators.hs22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/extensions/TypeOperators.hs b/tests/extensions/TypeOperators.hs
new file mode 100644
index 00000000..aa0fbe8c
--- /dev/null
+++ b/tests/extensions/TypeOperators.hs
@@ -0,0 +1,22 @@
+module TypeOperators (
+ -- * stuff
+ (:-:),
+ (:+:),
+ Op,
+ O(..),
+ biO,
+ Flip(..)
+) where
+
+data a :-: b
+
+data (a :+: b) c
+
+data a `Op` b
+
+newtype (g `O` f) a = O { unO :: g (f a) }
+
+biO :: (g `O` f) a
+biO = undefined
+
+newtype Flip (~>) b a = Flip { unFlip :: a ~> b }