Skip to content

haskell-miso/tic-tac-miso

 
 

Repository files navigation

🍜 ❌ ⭕ tic-tac-miso

A simple tic-tac-toe implemention.

Play it live here.

Tip

This requires installing nix with Nix Flakes enabled. Although not required, we recommend using miso's binary cache.

Development

Call nix develop to enter a shell with GHC 9.12.2

$ nix develop

Once in the shell, you can call cabal run to start the development server and view the application at http://localhost:8080

Build (Web Assembly)

$ nix develop .#wasm --command bash -c "make"

Build (JavaScript)

$ nix develop .#ghcjs --command bash -c "build"

Serve

To host the built application you can call serve

$ nix develop .#wasm --command bash -c "serve"

Clean

$ nix develop .#wasm --command bash -c "make clean"

This comes with a GitHub action that builds and auto hosts the example.

About

❌ ⭕ Tic-Tac-Toe written in miso

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 70.1%
  • JavaScript 12.2%
  • Makefile 7.6%
  • Nix 5.1%
  • HTML 3.6%
  • CSS 1.4%