@@ -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)
@@ -60,8 +60,8 @@ library
6060 build-depends: base >= 4.8 && < 5, bytestring
6161
6262 default-language: Haskell2010
63−
64− if impl(ghcjs) {
63+
64+ if impl(ghcjs) || os(ghcjs) {
6565 build-depends: ghcjs-dom
6666 , jsaddle
6767 }