According to the "Split out AST and Parser libraries from GHC" Haskell Foundation tech proposal, parseDynamicFilePragma (which is responsible here) is known to be in need of a refactoring to be fit for purpose as being nicely usable by external tools, so I am not going to try to change this upstream, but rather work around it for the time being, as the fix is very simple.
Closes #1087
According to the "Split out AST and Parser libraries from GHC" Haskell Foundation tech proposal,
parseDynamicFilePragma
(which is responsible here) is known to be in need of a refactoring to be fit for purpose as being nicely usable by external tools, so I am not going to try to change this upstream, but rather work around it for the time being, as the fix is very simple.