Allow annotations though addTopDecls (#10486)
authorMichael Smith <michael@diglumi.com>
Wed, 2 Sep 2015 11:56:27 +0000 (13:56 +0200)
committerBen Gamari <ben@smart-cactus.org>
Wed, 2 Sep 2015 11:56:31 +0000 (13:56 +0200)
commitba5554ec2753cc41f5e087a91f23e1f612a9eb29
treecd1c3c652e1b9be97c6b8b7ec639596a4ffaea47
parent296bc70b5ff6c853f2782e9ec5aa47a52110345e
Allow annotations though addTopDecls (#10486)

addTopDecls restricts what declarations it can be used to add. Adding
annotations via this method works fine with no special changes apart
from adding AnnD to the declaration whitelist.

Test Plan: validate

Reviewers: austin, goldfire, bgamari

Reviewed By: bgamari

Subscribers: thomie

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

GHC Trac Issues: #10486
compiler/typecheck/TcSplice.hs
docs/users_guide/7.12.1-notes.xml
testsuite/tests/annotations/should_compile/th/TestModuleTH.hs
testsuite/tests/annotations/should_compile/th/annth_compunits.stdout
testsuite/tests/annotations/should_compile/th/annth_make.stdout