Permalink
Browse files

Add a test for AutoDeriveTypeable

  • Loading branch information...
1 parent be2ffc3 commit 7767fd5d8ba0fceeeac47cc9a38f32ada579c92c @dreixel dreixel committed Mar 8, 2013
Showing with 19 additions and 1 deletion.
  1. +16 −0 tests/deriving/should_compile/AutoDeriveTypeable.hs
  2. +3 −1 tests/deriving/should_compile/all.T
@@ -0,0 +1,16 @@
+{-# LANGUAGE AutoDeriveTypeable #-}
+{-# LANGUAGE StandaloneDeriving #-}
+
+module AutoDeriveTypeable where
+
+import Data.Typeable
+
+
+data A = A
+
+data B = B deriving Typeable
+
+data C = C
+deriving instance Typeable C
+
+test = [typeRep [A], typeRep [B], typeRep [C]]
@@ -37,4 +37,6 @@ test('T1133',
run_command,
['$MAKE --no-print-directory -s T1133'])
test('T7704', normal, compile, [''])
-test('T7710', normal, compile, [''])
+test('T7710', normal, compile, [''])
+
+test('AutoDeriveTypeable', normal, compile, [''])

0 comments on commit 7767fd5

Please sign in to comment.