diff options
Diffstat (limited to 'testsuite/tests/th/T19737.hs')
-rw-r--r-- | testsuite/tests/th/T19737.hs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/th/T19737.hs b/testsuite/tests/th/T19737.hs new file mode 100644 index 0000000000..72ec1fe053 --- /dev/null +++ b/testsuite/tests/th/T19737.hs @@ -0,0 +1,14 @@ +{-# LANGUAGE TemplateHaskell #-} +{-# LANGUAGE TypeFamilies #-} +{-# OPTIONS_GHC -ddump-splices #-} +module T19737 where + +import Language.Haskell.TH + +type family T a + +$(pure [ TySynInstD (TySynEqn Nothing (ConT ''T `AppT` ConT ''Char) (ConT ''Char)) + , TySynInstD (TySynEqn Nothing (ParensT (ConT ''T) `AppT` ConT ''Int) (ConT ''Int)) + , TySynInstD (TySynEqn Nothing (ParensT (ConT ''T `AppT` ConT ''Bool)) (ConT ''Bool)) + , TySynInstD (TySynEqn Nothing (ParensT (ParensT (ConT ''T `AppT` ParensT (ConT ''Double)))) (ConT ''Double)) + ]) |