<div dir="ltr">Sorry for late response!  So likely CPP is the only option.  Thank you, Adam!  I know <span style="line-height:1.5;font-size:13.1999998092651px">GHCJS also sets similar variable and I think it is possible to check compiler using `impl(ghcjs)` in cabal file and have conditional dependencies list (correct me if I wrong).  But I don't know if Haste has similar var and flag.</span></div>