diff options
Diffstat (limited to 'testsuite/tests/th/T12387a.hs')
-rw-r--r-- | testsuite/tests/th/T12387a.hs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/th/T12387a.hs b/testsuite/tests/th/T12387a.hs new file mode 100644 index 0000000000..c8ca5c942a --- /dev/null +++ b/testsuite/tests/th/T12387a.hs @@ -0,0 +1,16 @@ +{-# LANGUAGE TemplateHaskell #-} +{-# LANGUAGE TypeFamilies #-} + +module T12387a where + +import GHC.Generics +import Language.Haskell.TH.Lib + +data Foo = Foo + +$(do d <- instanceD (cxt []) (conT ''Eq `appT` conT ''Foo) + [tySynInstD $ tySynEqn Nothing (conT ''Rep `appT` conT ''Foo) (conT ''Maybe)] + return [d]) + +main :: IO () +main = print $ Foo == Foo |