Fixes bug #11046
authorIavor S. Diatchki <iavor.diatchki@gmail.com>
Mon, 30 Jan 2017 16:57:35 +0000 (11:57 -0500)
committerBen Gamari <ben@smart-cactus.org>
Mon, 30 Jan 2017 19:00:23 +0000 (14:00 -0500)
commit559357384e300355b62edb3d60dcc3fadb942a50
tree506c8197833ccf8cd816ae3c368acdc6c1e816e1
parent91691117fc194c525f58ccd5b266dd1d10493e5a
Fixes bug #11046

For some time now, type-level operators such as '+' have been treated as
type constructors, rahter than type variables.  This pathc fixes TH's
`lookupName` function to account for this behavior.

Reviewers: bgamari, austin, goldfire, RyanGlScott

Reviewed By: RyanGlScott

Subscribers: Phyx, thomie

Differential Revision: https://phabricator.haskell.org/D3025

GHC Trac Issues: #11046
compiler/typecheck/TcSplice.hs
docs/users_guide/8.2.1-notes.rst
testsuite/tests/th/T11046.hs [new file with mode: 0644]
testsuite/tests/th/T11046_helper.hs [new file with mode: 0644]
testsuite/tests/th/all.T