faylang / fay

A proper subset of Haskell that compiles to JavaScript
https://github.com/faylang/fay/wiki
BSD 3-Clause "New" or "Revised" License
1.29k stars 86 forks source link

Workaround to make Fay works when using stack nix integration #463

Closed maxigit closed 4 years ago

maxigit commented 4 years ago

When using stack with nix enable, ghc and ghc-pkg might not be under .stack... something but in the nix store (/nix...). So we need to use the stack wrapper to be in the correct nix environment.

However, this pause a problem, as we are alread somehow in a nix environment (and stack forbid it using the STACK_IN_NIX_SHELL environment variable). We disable it temporatily and it seem to work.

maxigit commented 4 years ago

I'm fixing it ...

swamp-agr commented 4 years ago

Hi @maxigit, your contributions are welcome! 👍

maxigit commented 4 years ago

Thanks.

It's fixed by the way (not sure the force-push was clear).

swamp-agr commented 4 years ago

Hi @maxigit,

Sorry for late response! Thank you for your contribution. Version 0.24.0.4 is available on hackage: https://hackage.haskell.org/package/fay-0.24.0.4