Skip to content

Using ghc-paths makes downstream executables non portable #96

Description

@jneira

  • 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... 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions