question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

{-# OPTIONS_GHC .... #-} not properly parsed

See original GitHub issue

The plugin fails to parse valid Haskell code, yielding the following error:

<q name>, <reserved id>, .......... expected but got '#-}'

Full error:

screenshot from 2017-09-28 09-59-50

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:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rikvdkleijcommented, Oct 2, 2017

It’s fixed master. I’m planning to do new release this week.

0reactions
martijnbastiaancommented, Oct 12, 2017

I can confirm beta12 fixes this issue. Thanks again!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found