avieth / diplomacy-server

Play diplomacy via HTTP
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

Build problem #7

Open zolaemil opened 7 years ago

zolaemil commented 7 years ago

I am encountering the following error while trying to build: Not in scope: ‘Game.removeBuildOrders’

Do you have any suggestion how to solve this problem?

The full build log:

Building diplomacy-server-0.1.0.0...
Preprocessing executable 'diplomacy-server' for diplomacy-server-0.1.0.0...
[ 1 of 22] Compiling Types.Order      ( Types/Order.hs, dist/build/diplomacy-server/diplomacy-server-tmp/Types/Order.o )
[ 2 of 22] Compiling Types.Unit       ( Types/Unit.hs, dist/build/diplomacy-server/diplomacy-server-tmp/Types/Unit.o )
[ 3 of 22] Compiling Types.GreatPower ( Types/GreatPower.hs, dist/build/diplomacy-server/diplomacy-server-tmp/Types/GreatPower.o )
[ 4 of 22] Compiling Types.GameId     ( Types/GameId.hs, dist/build/diplomacy-server/diplomacy-server-tmp/Types/GameId.o )
[ 5 of 22] Compiling Types.Credentials ( Types/Credentials.hs, dist/build/diplomacy-server/diplomacy-server-tmp/Types/Credentials.o )
[ 6 of 22] Compiling Types.UserData   ( Types/UserData.hs, dist/build/diplomacy-server/diplomacy-server-tmp/Types/UserData.o )
[ 7 of 22] Compiling Types.ServerOptions ( Types/ServerOptions.hs, dist/build/diplomacy-server/diplomacy-server-tmp/Types/ServerOptions.o )
[ 8 of 22] Compiling Types.GameState  ( Types/GameState.hs, dist/build/diplomacy-server/diplomacy-server-tmp/Types/GameState.o )
[ 9 of 22] Compiling Types.Server     ( Types/Server.hs, dist/build/diplomacy-server/diplomacy-server-tmp/Types/Server.o )
[10 of 22] Compiling Resources.Game.Remove ( Resources/Game/Remove.hs, dist/build/diplomacy-server/diplomacy-server-tmp/Resources/Game/Remove.o )
[11 of 22] Compiling Resources.Advance ( Resources/Advance.hs, dist/build/diplomacy-server/diplomacy-server-tmp/Resources/Advance.o )
[12 of 22] Compiling Resources.Join   ( Resources/Join.hs, dist/build/diplomacy-server/diplomacy-server-tmp/Resources/Join.o )
[13 of 22] Compiling Resources.Start  ( Resources/Start.hs, dist/build/diplomacy-server/diplomacy-server-tmp/Resources/Start.o )
[14 of 22] Compiling Resources.Order  ( Resources/Order.hs, dist/build/diplomacy-server/diplomacy-server-tmp/Resources/Order.o )

Resources/Order.hs:126:119: Not in scope: ‘Game.removeBuildOrders’
avieth commented 7 years ago

Sorry I've really neglected this project!

Game.removeBuildOrders comes from the diplomacy package. I haven't pushed this commit to hackage, hence the failure.

I've just bumped diplomacy and diplomacy-server to 0.2.0.0. They build for me on GHC 8.1. Try it out for yourself: grab diplomacy master and add it as a cabal-sandbox source then try to build. Let me know if it works and I'll put the new version on hackage.