Resolving dependencies... Configuring mtl-2.2.1... Building mtl-2.2.1... Installed mtl-2.2.1 Configuring ghcjs-dom-0.0.7... Building ghcjs-dom-0.0.7... Failed to install ghcjs-dom-0.0.7 Build log ( /home/builder/.cabal/logs/ghcjs-dom-0.0.7.log ): cabal: Entering directory '/tmp/cabal-tmp-19174/ghcjs-dom-0.0.7' Configuring ghcjs-dom-0.0.7... Building ghcjs-dom-0.0.7... Preprocessing library ghcjs-dom-0.0.7... [ 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-19174/ghcjs-dom-0.0.7' cabal: Error: some packages failed to install: ghcjs-dom-0.0.7 failed during the building phase. The exception was: ExitFailure 1