summaryrefslogtreecommitdiff
path: root/testsuite/tests/showIface/Makefile
diff options
context:
space:
mode:
authorReid Barton <rwbarton@gmail.com>2017-02-11 19:20:08 -0500
committerBen Gamari <ben@smart-cactus.org>2017-02-11 19:20:16 -0500
commit17b1e0bae7c0d7b4d3f8e1847e919c0e882e55c6 (patch)
treeb026d3b9b062a9ca7818f6319ea77288980b5cc5 /testsuite/tests/showIface/Makefile
parent7fac7cdce975620e04eccfc2751190063cf715a8 (diff)
downloadhaskell-17b1e0bae7c0d7b4d3f8e1847e919c0e882e55c6.tar.gz
Mark orphan instances and rules in --show-iface output
Test Plan: new test Orphans Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D3086
Diffstat (limited to 'testsuite/tests/showIface/Makefile')
-rw-r--r--testsuite/tests/showIface/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/showIface/Makefile b/testsuite/tests/showIface/Makefile
new file mode 100644
index 0000000000..49b90342b3
--- /dev/null
+++ b/testsuite/tests/showIface/Makefile
@@ -0,0 +1,7 @@
+TOP=../..
+include $(TOP)/mk/boilerplate.mk
+include $(TOP)/mk/test.mk
+
+Orphans:
+ '$(TEST_HC)' $(TEST_HC_OPTS) -c Orphans.hs
+ '$(TEST_HC)' $(TEST_HC_OPTS) --show-iface Orphans.hi | grep -E '^(instance |family instance |"myrule)' | grep -v 'family instance modules:'