optF pragma incorrectly parsed
See original GitHub issueBased 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'
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (12 by maintainers)
Top 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 >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
@rikvdkleij I’ll try to elaborate my solution with a PR.
Checkout my PR. I hope I’m not making stupid mistakes.
Bomb my PR with edge cases!