Resolving dependencies... Configuring mtl-2.2.1... Building mtl-2.2.1... Installed mtl-2.2.1 Configuring ghcjs-dom-0.0.6... Building ghcjs-dom-0.0.6... Failed to install ghcjs-dom-0.0.6 Build log ( /home/builder/.cabal/logs/ghcjs-dom-0.0.6.log ): cabal: Entering directory '/tmp/cabal-tmp-30629/ghcjs-dom-0.0.6' Configuring ghcjs-dom-0.0.6... Building ghcjs-dom-0.0.6... Preprocessing library ghcjs-dom-0.0.6... [ 1 of 133] Compiling GHCJS.DOM.Types ( src/GHCJS/DOM/Types.hs, dist/build/GHCJS/DOM/Types.o ) src/GHCJS/DOM/Types.hs:278:1: error: Failed to load interface for ‘GHCJS.Types’ Perhaps you meant GHC.Types (needs flag -package-key ghc-prim-0.5.0.0) Use -v to see a list of the files searched for. cabal: Leaving directory '/tmp/cabal-tmp-30629/ghcjs-dom-0.0.6' cabal: Error: some packages failed to install: ghcjs-dom-0.0.6 failed during the building phase. The exception was: ExitFailure 1