-
Install the Haskell Tool Stack
Please visit the stack website and install stack according to the instructions on the webpage.
-
Install GHC and other libraries
-
Run the following command.
stack --version
If no error occurs and the version of stack is correctly shown, the installation of stack was successful. If not, please try installing it again.
-
Run the following commands sequentially to install GHC, QuickCheck and th-alpha.
stack --resolver lts-9.17 setup stack update ghc-pkg recache stack install QuickCheck stack install th-alpha
Some commands may take longer to complete, depending on the Internet condition and computer performance. The command screen may be flushed with massive progress information. If a command ends with a
Permission Denied
error, run it again. This step may take 20 ~ 30 minutes in total.
-
-
Start HaskellQuest
Please download HaskellQuest-0.1.0-alpha.1-Windows.zip.
Unzip the downloaded file and you will get a folder named
HaskellQuest
.Entering the
HaskellQuest
folder and double-clickingstartHaskellQuest.bat
will start the game. If the game does not start in 30 seconds, enter thewin-unpacked
folder and find a file namedHaskellQuest.exe
, double-clicking this file will start the game.For non-roman alphabets users, please switch to the English input method while playing HaskellQuest.
Coming soon
-
command not found
ornot recognized as an internal or external command, operable program or batch file
when runghc-pkg recache
.Solution: Skip this command.
-
The system already has another version of GHC installed, and the
stack install
command complains about the versions of dependencies.Solution: Try again with the following commands.
stack config set resolver lts-9.17 stack setup stack update stack install QuickCheck stack install th-alpha