summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver/T16608/MyInteger.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/driver/T16608/MyInteger.hs')
-rw-r--r--testsuite/tests/driver/T16608/MyInteger.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/driver/T16608/MyInteger.hs b/testsuite/tests/driver/T16608/MyInteger.hs
new file mode 100644
index 0000000000..a7c731ed8c
--- /dev/null
+++ b/testsuite/tests/driver/T16608/MyInteger.hs
@@ -0,0 +1,12 @@
+module MyInteger
+ ( MyInteger (MyInteger)
+ , ToMyInteger (toMyInteger)
+ ) where
+
+newtype MyInteger = MyInteger Integer
+
+class ToMyInteger a where
+ toMyInteger :: a -> MyInteger
+
+instance ToMyInteger Integer where
+ toMyInteger = MyInteger {- . succ -}