Forbid annotations when Safe Haskell safe mode is enabled.
authorDavid Kraeutmann <kane@kane.cx>
Tue, 8 Sep 2015 16:35:33 +0000 (11:35 -0500)
committerAustin Seipp <austin@well-typed.com>
Tue, 8 Sep 2015 16:35:59 +0000 (11:35 -0500)
commit4356dacb4a2ae29dfbd7126b25b72d89bb9db1b0
tree9d118c4eb0733cd134359efe95e6847d91688abf
parentdbb4e415126aceb603da0fbf657372389a47e466
Forbid annotations when Safe Haskell safe mode is enabled.

For now, this fails compliation immediately with an error. If desired, this
can be a warning that annotations in Safe Haskell are ignored.

Signed-off-by: David Kraeutmann <kane@kane.cx>
Reviewed By: goldfire, austin

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

GHC Trac Issues: #10826
compiler/typecheck/TcAnnotations.hs
docs/users_guide/7.12.1-notes.xml
docs/users_guide/safe_haskell.xml
testsuite/tests/annotations/should_fail/T10826.hs [new file with mode: 0644]
testsuite/tests/annotations/should_fail/T10826.stderr [new file with mode: 0644]
testsuite/tests/annotations/should_fail/all.T