Make the code compatible with base==4.9
This commit is contained in:
parent
5966beed85
commit
f8dc186e17
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ executable pokeNeige
|
|||
, Pokemon.Type
|
||||
, Tool.Array
|
||||
-- other-extensions:
|
||||
build-depends: base >=4.11 && <4.12
|
||||
build-depends: base >=4.9 && <4.12
|
||||
, aeson
|
||||
, bytestring
|
||||
, containers
|
||||
|
|
|
@ -29,7 +29,7 @@ edges Empty Client.NewGame = return $ Game {
|
|||
edges Empty (Client.Resume {Client.game}) = return game
|
||||
|
||||
edges game message = do
|
||||
let errorMessage = "inacceptable message " <> encode message <> " in this context"
|
||||
let errorMessage = "inacceptable message " `mappend` encode message `mappend` " in this context"
|
||||
send (Server.Error $ unpack errorMessage)
|
||||
log errorMessage
|
||||
return game
|
||||
|
|
Loading…
Reference in a new issue