diff options
author | Richard Eisenberg <eir@cis.upenn.edu> | 2015-09-19 15:43:15 -0400 |
---|---|---|
committer | Richard Eisenberg <eir@cis.upenn.edu> | 2015-09-20 21:39:15 -0400 |
commit | 1292c17e61400dfa0c27eddff4bea6a935006657 (patch) | |
tree | 2fd14d31648371f8ec3cfed660ed7634ee306e2b /testsuite | |
parent | 79b8e891d88bd4018e31be042364e314a25fbb41 (diff) | |
download | haskell-1292c17e61400dfa0c27eddff4bea6a935006657.tar.gz |
Allow TH quoting of assoc type defaults.
This fixes #10811.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/tests/th/T10811.hs | 7 | ||||
-rw-r--r-- | testsuite/tests/th/all.T | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/th/T10811.hs b/testsuite/tests/th/T10811.hs new file mode 100644 index 0000000000..3fac1905d6 --- /dev/null +++ b/testsuite/tests/th/T10811.hs @@ -0,0 +1,7 @@ +{-# LANGUAGE TemplateHaskell, TypeFamilies #-} + +module Bug where + +$([d| class C a where + type F a + type F a = a |]) diff --git a/testsuite/tests/th/all.T b/testsuite/tests/th/all.T index eea0fa98c2..85dae8b05a 100644 --- a/testsuite/tests/th/all.T +++ b/testsuite/tests/th/all.T @@ -353,3 +353,4 @@ test('T10704', ['T10704', '-v0']) test('T6018th', normal, compile_fail, ['-v0']) test('TH_namePackage', normal, compile_and_run, ['-v0']) +test('T10811', normal, compile, ['-v0']) |