@@ -43,7 +43,7 @@ custom-setup
4343library
4444 ghc-options: -O2
4545 exposed-modules: System.Entropy
46− if impl(ghcjs)
46+ if impl(ghcjs) || os(ghcjs)
4747 other-modules: System.EntropyGhcjs
4848 else {
4949 if os(windows)
@@ -61,7 +61,7 @@ library
6161
6262 default-language: Haskell2010
6363
64− if impl(ghcjs) {
64+ if impl(ghcjs) || os(ghcjs) {
6565 build-depends: ghcjs-dom
6666 , jsaddle
6767 }