diff options
author | RyanGlScott <ryan.gl.scott@gmail.com> | 2016-01-06 12:05:05 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-01-06 12:05:12 +0100 |
commit | 852b603029a047609a54453b1f9cd65035a43afe (patch) | |
tree | 6cb96f24dcf4a2f1ac747525ac618afa86689abb /testsuite/tests/generics/T11358.stdout | |
parent | 4dc4b8445710d92d23505b875a8d666217bc932d (diff) | |
download | haskell-852b603029a047609a54453b1f9cd65035a43afe.tar.gz |
Restore old GHC generics behavior vis-à-vis Fixity
Phab:D493 accidentally changed the way GHC generics looks up `Fixity`
information when deriving `Generic` or `Generic1`. Before, a `Fixity` of
`Infix` would be given only if a data constructor was declared infix,
but now, `Infix` is given to any data constructor that has a fixity
declaration (not to be confused with being declared infix!). This commit
reverts back to the original behavior for consistency's sake.
Fixes #11358.
Test Plan: ./validate
Reviewers: kosmikus, dreixel, austin, bgamari
Reviewed By: bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1740
GHC Trac Issues: #11358
Diffstat (limited to 'testsuite/tests/generics/T11358.stdout')
-rw-r--r-- | testsuite/tests/generics/T11358.stdout | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/tests/generics/T11358.stdout b/testsuite/tests/generics/T11358.stdout new file mode 100644 index 0000000000..f7b347d9af --- /dev/null +++ b/testsuite/tests/generics/T11358.stdout @@ -0,0 +1 @@ +Prefix, Infix LeftAssociative 9 |