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.

optF pragma incorrectly parsed

See original GitHub issue

Based on tasty-discover documentation and GHC spec, the string following -optF should be passed to the preprocessor.

Intellij Haskell incorrectly interprets options containing -- in a pragma, example:

{-# OPTIONS_GHC -F -pgmF tasty-discover -optF --tree-display #-}

The error is

Error:(1, 4) HaskellTokenType.CON_ID, HaskellTokenType.DIRECTIVE or HaskellTokenType.NEWLINE expected, got 'OPTIONS_GHC'

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
ice1000commented, Feb 13, 2019

@rikvdkleij I’ll try to elaborate my solution with a PR.

0reactions
ice1000commented, Feb 17, 2019

Checkout my PR. I hope I’m not making stupid mistakes.

Bomb my PR with edge cases!

Read more comments on GitHub >

github_iconTop Results From Across the Web

CUDA Compiler Driver NVCC - NVIDIA Documentation Center
Using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk. This option has no...
Read more >
4.19. Flag reference - Haskell.org Downloads
This section is a quick-reference for GHC's command-line flags. For each flag, we also list its static/dynamic status (see Section 4.3, “Static, Dynamic,...
Read more >
openjdk7 crypto strength broken · Issue #187 - GitHub
OpenJDK7 on SmartOS seems to have broken crypto support. The following code snippet should show the crypto strength allowed (at least for AES): ......
Read more >
z/OS XL C/C++ User's Guide - IBM
Specifying z/OS XL C compiler options using #pragma options. ... Allows you to write compilers and other programs that parse input according ...
Read more >
July 2022 – ColinPaice
(The documentation says it is better to use #PRAGMA EXPORT(name) for each entry, ... Which is clearly wrong, as it is missing variable...
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