Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHC flags taken into account too late #152

Open
lastland opened this issue Nov 3, 2020 · 2 comments
Open

GHC flags taken into account too late #152

lastland opened this issue Nov 3, 2020 · 2 comments

Comments

@lastland
Copy link
Collaborator

lastland commented Nov 3, 2020

Issue by nomeata
Thursday Mar 26, 2020 at 17:22 GMT
Originally opened as antalsz/hs-to-coq#152


It seems that

hs-to-coq --ghc -package-env=hs-to-coq.env

doesn’t work the way it should, but

GHC_ENVIRONMENT=hs-to-coq.env hs-to-coq

does.

Some wild guess: We need to extract the --ghc flags and pass them to the GHC API earlier, maybe in lib/HsToCoq/Util/GHC.hs.

(Not working on that right now, the work-around is fine for now.)

@quinn-dougherty
Copy link
Contributor

-package-envs isn't present in the current hs-to-coq --help menu.

@nomeata
Copy link
Collaborator

nomeata commented Oct 23, 2021

It's a GHC flag, hs-to-coq just passes it through (when prefixed with --ghc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants