{-# OPTIONS_GHC .... #-} not properly parsed
See original GitHub issueThe plugin fails to parse valid Haskell code, yielding the following error:
<q name>, <reserved id>, .......... expected but got '#-}'
Full error:
Minimum example:
{-# OPTIONS_GHC -fplugin GHC.TypeLits.Extra.Solver #-}
main = putStr "Hello, world"
Which trips the plugin, even though GHC handles it just fine:
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.0.2
$ ghc Test.hs
[1 of 1] Compiling Main ( Test.hs, Test.o )
Linking Test ...
and:
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.3
$ ghc Test.hs
[1 of 1] Compiling Main ( Test.hs, Test.o )
Linking Test ...
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
pkg-config output parser doesn't implement shell quoting rules
What I'm certain of is that it has something to do with the pkgconfig-depends field, because another project that uses foreign dependencies ( ......
Read more >Can "-main-is" ghc's option be use via OPTIONS_GHC pragma?
Given MyModule.hs $ cat MyModule.hs {-# OPTIONS_GHC -main-is MyModule.main #-} module MyModule where main = print "MyModule.Main".
Read more >7. Extending and using GHC as a Library - Haskell.org
The parsing pass will fail if the Messages PsError collection inside the return ParsedResult is not empty after all parsing plugins have been...
Read more >Could not parse input for watch . failed to parse - Opster
A detailed guide on how to resolve errors related to "could not parse input for watch ... A 200 response code means the...
Read more >Daml Assistant (daml) — Daml SDK 1.13.1 documentation
Note that there is no further shell parsing applied. sandbox-options : a list of options that will be passed to Sandbox in daml...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s fixed master. I’m planning to do new release this week.
I can confirm beta12 fixes this issue. Thanks again!