So it looks like hdevtools cannot be directly used with ghcjs. Using stack install hdevtools
within a GHCJS stack project gives me:
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for hdevtools-0.1.5.0:
ghc must match >=7.2, but the stack configuration has no specified version
Plan construction failed.
But since GHCJS and GHC should (I hope) both give the same errors and have the same types and things in scope for the same codebase. Then I would be happy if I also had GHC + dependencies simultaneously installed, purely for hdevtools (and perhaps for GHCI, as GHCJS doesn't support interpreted mode). Anyone know the best way to do this?
stack install ghc
errors out purely with:
Error: While constructing the build plan, the following exceptions were encountered:
Plan construction failed.
So that does not appear to be a solution.
I would rather not switch back and forth every time I deploy or anything like that. But I also wouldn't completely rule it out.