haskell base library >= 4.8 ?

Ken Cunningham ken.cunningham.webuse at gmail.com
Mon Nov 20 00:06:17 UTC 2017


Hi all,

I'm updating hedgewars, and there is a build error (see below). The hedgewars devs say this means the base library is too old, and needs to be >= 4.8. I don't actually know what version of the haskell base library we have at present, or how to update it (if we can).

Any ideas how that might occur?

Best,

Ken


==== build error =========


[22 of 25] Compiling Actions          ( /opt/local/var/macports/build/_opt_myports_games_hedgewars/hedgewars/work/hedgewars-src-0.9.23/gameServer/Actions.hs, /opt/local/var/macports/build/_opt_myports_games_hedgewars/hedgewars/work/build/gameServer/Actions.o )

/opt/local/var/macports/build/_opt_myports_games_hedgewars/hedgewars/work/hedgewars-src-0.9.23/gameServer/Actions.hs:534:48:
   Couldn't match expected type ‘[ClientIndex]’
               with actual type ‘Maybe ClientIndex’
   In the second argument of ‘($)’, namely ‘masterID r’
   In the first argument of ‘(>>=)’, namely
     ‘(mapM (client'sM rnc id) $ masterID r)’

/opt/local/var/macports/build/_opt_myports_games_hedgewars/hedgewars/work/hedgewars-src-0.9.23/gameServer/Actions.hs:535:61:
   Couldn't match expected type ‘Maybe ClientInfo’
               with actual type ‘[ClientInfo]’
   In the first argument of ‘maybeNick’, namely ‘cn’
   In the second argument of ‘roomInfo’, namely ‘(maybeNick cn)’
make[2]: *** [bin/hedgewars-server] Error 1



More information about the macports-dev mailing list