如何为最新的 ghcjs/lts 构建配置堆栈

How to configure stack for most recent ghcjs / lts build

堆栈文档给出了使用 ghcjs https://docs.haskellstack.org/en/stable/ghcjs/ 进行编译的示例配置。但最新的例子是 lts-7.19。我想配置堆栈以使用最新的 ghcjs 可能与最新的 lts(当前为 8.4)。

我知道 ghcjs 编译器是为每个 lts 预先打包并由 https://github.com/tolysz/ , using https://github.com/tolysz/prepare-ghcjs 托管的。我想我真正的问题是:

如何找出 ghcjs.tolysz.org 上可用的可能版本(以及它们的 sha1 哈希值)?

编辑: 到目前为止,我发现您可以在此处查看未经测试的构建:http://tolysz.org/ghcjs/untested/ but they are indeed untested, and the ones I have tried do not work. I've tried building my own with prepare-ghcjs but with no success - recent changes in ghcjs have not yet been allowed for in prepare-ghcjs, so I'm trying to put something together there https://github.com/tolysz/prepare-ghcjs/issues/6

简短的回答是没有直接的方法可以做到这一点。但是,我已经在 haskell-stack 中分叉了 ghcjs, ghcjs-base and ghcjs-boot, altered a few patches and so forth and put together a working archive for use with stack. I've raised a thread about this,但还没有回应。

目前,我已经发布了一个 git 存储库 ghcjs-stack-dist,其中包含预打包的 ghcjs 发行版,可以与堆栈 lts-8.0 和 lts-8.5 一起使用。有关使用信息,请参阅 repo 自述文件。