Compiler panic on invalid syntax (unterminated pragma)

Authored by RolandSenn on Sep 4 2018, 7:09 AM.

Description

Compiler panic on invalid syntax (unterminated pragma)

Summary: After a parse error in OPTIONS_GHC issue an error message instead of a compiler panic.

Test Plan: make test TEST=T15053

Reviewers: Phyx, thomie, bgamari, monoidal, osa1

Reviewed By: Phyx, monoidal, osa1

Subscribers: tdammers, osa1, rwbarton, carter

GHC Trac Issues: Trac #15053

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