aboutsummaryrefslogtreecommitdiff
path: root/html-test
diff options
context:
space:
mode:
Diffstat (limited to 'html-test')
-rw-r--r--html-test/src/Instances.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/html-test/src/Instances.hs b/html-test/src/Instances.hs
index b7bc8921..545c8534 100644
--- a/html-test/src/Instances.hs
+++ b/html-test/src/Instances.hs
@@ -3,11 +3,15 @@
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ImpredicativeTypes #-}
{-# LANGUAGE TypeFamilies #-}
+{-# LANGUAGE TypeOperators #-}
module Instances where
+newtype (<~~) a b = Xyzzy (b -> (a, a))
+
+
class Foo f where
foo :: f Int -> a -> f a
@@ -21,6 +25,8 @@ instance Foo []
instance (Eq a, Foo f) => Foo ((,) (f a))
instance Foo (Either a)
instance Foo ((,,) a a)
+instance Foo ((->) a)
+instance Foo ((<~~) a)
class Foo f => Bar f a where