haskellghcjsreflexreflex-dom

How to install ghcjs 8.8 or 8.10?


I would like to produce an HTML / JS page with reflex-dom (only client side, frontend). However, I use the singletons package (2.6) and it seems that it cannot be compiled with ghcjs or ghc 8.6.5 (singletons 2.5.1, broken-unpatched). Therefore, the reflex-platform solutions, reflex-stone or equivalent did not help me.

I saw that ghcjs 8.8 or 8.10 could be installed through haskell.nix, but I did not find how.

How can I do it? Or maybe, is there a way to use GHCJS (or reflex-platform solutions) with recent packages (that need ghc 8.8 or +)? Is there a way to use ghcjs-8.8 or 8.10 with the reflex-platform?


Solution

  • First of all I would like to highlight that I'm not in any way related to GHC or GHCJS projects development, just another person who encountered similar issues, so take it with a grain of salt.

    Currently GHCJS supports <= 8.6.5 out of the box. There is some development going on now and we will probably see officially supported 8.10 soon.

    Meanwhile you can try to build the following branches on your own risk: 8.10 8.8