Open ghost opened 5 years ago
The build probably fails because the game was written before this.
To fix it, add the following to src/HaskellGame/GameMonad.hs
:
import Control.Monad (ap, liftM)
instance Functor GameAction where
fmap = liftM
instance Applicative GameAction where
pure = return
(<*>) = ap
and replace
import Prelude ( Monad(..), ($) )
by
import Prelude ( Monad(..), ($), Applicative (..), Functor (..))
First of all, sorry if I am building this wrong I just started with Haskell and cabal and everything but when I try to compile it I get