Skip to content

scameronde/minesweeperMiso

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Miso example

This project builds a minesweeper clone, the output is included in this repository for demonstration purposes: Play Minesweeper!

This is a fork of https://github.com/dc25/minesweeperMiso.

I removed the unnecessary use of a state monad, added a basic nix configuration and restructured the code base to my liking. The functionality is still the same.

Building with nix

To build the code in this way, you have to have the nix package manager installed:

curl https://nixos.org/nix/install | sh

In the base directory of the project run

nix-build

and then open the html file found at

result/bin/minesweeper.jsexe/index.html

Building with stack

Run the following commands on Mac or Linux from inside a terminal emulator.

Clone this repository

git clone [email protected]:scameronde/minesweeperMiso.git

Note: The stack project file is surprisingly in the src directory, hence enter

cd minesweeperMiso/src

Next, run stack to build the javascript code. This might take very long, but only the first build.

stack build

When the build is finished pay attention to the stack output, it contains the path, where the resulting Javascript/HTML can be found.

To open the generated Javascript run:

firefox .stack-work/install/x86_64-linux/lts-6.30/ghcjs-0.2.0.9006030_ghc-7.10.3/bin/minesweeper.jsexe/index.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 93.6%
  • Nix 6.4%