- We have detected in haskell-language-server executable that libraries using this package might fail due to
/opt/ghc/8.8.4/lib/ghc-8.8.4/settings: openFile: does not exist (No such file or directory)
- The suspicious dependency is
ghc-path, as it stores the ghc libdir at compile time
|
. GHC.runGhc (Just libdir) |
- The solution could be try to get the libdir at runtime and only use ghc-paths as last resort, like it is done in
hie-bios:
https://github.com/mpickering/hie-bios/blob/5eede133dbe82d158591a2c8d0361b3d188192ed/src/HIE/Bios/Environment.hs#L66-L81
But is supposes a runtime call to ghc, that in turn could need be called through stack or cabal, maybe too much.
Or take the way of let downstream packages inform the libdir location, or the ghcWrapperas a callback... 🤔
/opt/ghc/8.8.4/lib/ghc-8.8.4/settings: openFile: does not exist (No such file or directory)ghc-path, as it stores the ghc libdir at compile timeghc-exactprint/src/Language/Haskell/GHC/ExactPrint/Parsers.hs
Line 289 in 81c2ef9
hie-bios:https://github.com/mpickering/hie-bios/blob/5eede133dbe82d158591a2c8d0361b3d188192ed/src/HIE/Bios/Environment.hs#L66-L81
But is supposes a runtime call to ghc, that in turn could need be called through stack or cabal, maybe too much.
Or take the way of let downstream packages inform the libdir location, or the
ghcWrapperas a callback... 🤔