tweag / ormolu

A formatter for Haskell source code
https://ormolu-live.tweag.io
Other
938 stars 83 forks source link

Don't error on `JavaScriptFFI` language pragma #1088

Closed amesgen closed 6 months ago

amesgen commented 6 months ago

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.

github-actions[bot] commented 6 months ago

🚀 Deployed on https://cf85693bb4f35616c299a588288f25a6922c038b--ormolu-live.netlify.app