Check for empty entity string in "prim" foreign imports
authorSylvain HENRY <hsyl20@gmail.com>
Fri, 14 Oct 2016 14:43:30 +0000 (10:43 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 14 Oct 2016 17:27:33 +0000 (13:27 -0400)
commit6c7393261e723af3651f47bcee9af8db6bb6cf17
treef8d393b70a27714c5c2ff27d2041c1b8760dfc37
parent3ce0e0baad05352e2e1ca439794b6f9f2325ef2b
Check for empty entity string in "prim" foreign imports

Foreign imports with "prim" convention require a valid symbol identifier
(see linked issue). We check this.

Fix line too long

Test Plan: Validate

Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: thomie

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

GHC Trac Issues: #12355
compiler/parser/RdrHsSyn.hs
testsuite/tests/codeGen/should_compile/all.T
testsuite/tests/ffi/should_fail/T10461.stderr