While I think developing in a Linux VM makes most sense, I am trying to build Codeworld on OS X just for fun.
RUNNING: cabal_install --ghcjs ./codeworld-prediction ./codeworld-error-sanitizer ./codeworld-api ./codeworld-base ./codeworld-game-api QuickCheck
Warning: --root-cmd is no longer supported, see
comment out root-cmd in your ~/.cabal/config file)
Warning: the --global flag is deprecated -- it is generally considered a bad
idea to install packages into the global store
Resolving dependencies...
Downloading MonadRandom-0.5.1...
Downloading cereal-0.5.5.0...
Configuring codeworld-error-sanitizer-0.1.0.0...
Configuring codeworld-game-api-0.2.0.0...
Configuring codeworld-prediction-0.1...
Configuring tf-random-0.5...
Downloading ghcjs-dom-jsffi-0.8.0.0...
Configuring MonadRandom-0.5.1...
Configuring cereal-0.5.5.0...
Building codeworld-error-sanitizer-0.1.0.0...
Building codeworld-prediction-0.1...
Building tf-random-0.5...
Building codeworld-game-api-0.2.0.0...
Building MonadRandom-0.5.1...
Building cereal-0.5.5.0...
Failed to install codeworld-game-api-0.2.0.0
Build log ( /Users/tdavies/.cabal/logs/ghcjs-0.2.1/codeworld-game-api-0.2.0.0-5UO98ffcLFcDrhWXfeeglb.log ):
cabal: Entering directory './codeworld-game-api'
Configuring codeworld-game-api-0.2.0.0...
Preprocessing library for codeworld-game-api-0.2.0.0..
Building library for codeworld-game-api-0.2.0.0..
[1 of 1] Compiling CodeWorld.Message ( src/CodeWorld/Message.hs, dist/build/CodeWorld/Message.js_o )
[1 of 1] Compiling CodeWorld.Message ( src/CodeWorld/Message.hs, dist/build/CodeWorld/Message.js_p_o )
src/CodeWorld/Message.hs:16:8: error:
Failed to load interface for ‘Prelude’
Perhaps you haven't installed the "js_p" libraries for package ‘base-4.9.0.0’?
Use -v to see a list of the files searched for.
src/CodeWorld/Message.hs:18:1: error:
Failed to load interface for ‘Data.ByteString’
Perhaps you haven't installed the "js_p" libraries for package ‘bytestring-0.10.8.1’?
Use -v to see a list of the files searched for.
src/CodeWorld/Message.hs:19:1: error:
Failed to load interface for ‘Data.Text’
Perhaps you haven't installed the "js_p" libraries for package ‘text-1.2.2.1’?
Use -v to see a list of the files searched for.