From bb835c96c3d962c2e08d23f6fb900665c89953b4 Mon Sep 17 00:00:00 2001 From: Ryan Scott Date: Wed, 24 Oct 2018 07:02:59 -0400 Subject: Keep top-level names in typed TH quotes alive Summary: When renaming untyped TH quotes, some care is taken to ensure that uses of top-level names in quotes do not have their bindings discarded during desugaring. The same care was not applied to typed TH quotes, so this patch brings the two into sync. Test Plan: make test TEST=T15783 Reviewers: bgamari, mpickering Reviewed By: mpickering Subscribers: mpickering, rwbarton, carter GHC Trac Issues: #15783 Differential Revision: https://phabricator.haskell.org/D5248 --- testsuite/tests/th/T15783A.hs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 testsuite/tests/th/T15783A.hs (limited to 'testsuite/tests/th/T15783A.hs') diff --git a/testsuite/tests/th/T15783A.hs b/testsuite/tests/th/T15783A.hs new file mode 100644 index 0000000000..591a975530 --- /dev/null +++ b/testsuite/tests/th/T15783A.hs @@ -0,0 +1,6 @@ +{-# LANGUAGE TemplateHaskell #-} +module T15783A where + +import T15783B + +main = $$f -- cgit v1.2.1