@@ -43,7 +43,7 @@ custom-setup
44 ghc-options: -O2
44 ghc-options: -O2
45 exposed-modules: System.Entropy
45 exposed-modules: System.Entropy
46− if impl(ghcjs)
46+ if impl(ghcjs) || os(ghcjs)
47 other-modules: System.EntropyGhcjs
47 other-modules: System.EntropyGhcjs
49 if os(windows)
49 if os(windows)
@@ -60,8 +60,8 @@ library
60 build-depends: base >= 4.8 && < 5, bytestring
60 build-depends: base >= 4.8 && < 5, bytestring
62 default-language: Haskell2010
62 default-language: Haskell2010
64− if impl(ghcjs) {
64+ if impl(ghcjs) || os(ghcjs) {
65 build-depends: ghcjs-dom
65 build-depends: ghcjs-dom