-
Notifications
You must be signed in to change notification settings - Fork 846
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
GHC -package <pkg>
does not expose an installed package listed by ghc-pkg list <pkg>
#6616
Comments
This doesn't happen with the latest resolver. #!/usr/bin/env stack
- {- stack script --resolver lts-21.25 --package pandoc -}
+ {- stack script --resolver nightly-2024-06-22 --package pandoc -}
import Prelude
import Text.Pandoc
main :: IO ()
main = putStrLn "Pandoc detected"
|
For me it doesn't work neither with |
@tonicebrian, thanks for reporting. I'm looking into this. |
Related discussion: https://discourse.haskell.org/t/stack-script-fails-to-find-pandoc/9817/9 @tonicebrian, I think this is - at least, in part - an issue with GHC's My reasoning is that (on Windows):
shoud not be a possible output of (This is not Linux-specific but, oddly, GHC 9.4.7 works on Linux, fails on Windows and GHC 9.4.8 fails on Linux, works on Windows - all with |
The cause of this has been identified, as now discussed at:
I would characterise it as a 'GHC project' bug. I would not expect GHC's |
-package <pkg>
does not expose a installed package listed by ghc-pkg list <pkg>
-package <pkg>
does not expose a installed package listed by ghc-pkg list <pkg>
-package <pkg>
does not expose an installed package listed by ghc-pkg list <pkg>
General summary/comments (optional)
Stack used as a script fails to find pandoc library although it has been downloaded and compiled.
Steps to reproduce
Just run this script:
Expected
I would expect the "Pandoc detected" printed in screen
Actual
The script fails to compile with:
Stack version
Method of installation
Platform
Linux Ubuntu 22.04
The text was updated successfully, but these errors were encountered: