Sorry for late response!  So likely CPP is the only option.  Thank you, Adam!  I know 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.