Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/peterbecich/halogen-chess


https://github.com/peterbecich/halogen-chess

chess chessboard purescript purescript-halogen

Last synced: 23 days ago
JSON representation

Awesome Lists containing this project

README

        

# Halogen Chess

[![Haskell](https://github.com/peterbecich/halogen-chess/actions/workflows/haskell.yml/badge.svg)](https://github.com/peterbecich/halogen-chess/actions/workflows/haskell.yml)
[![Purescript](https://github.com/peterbecich/halogen-chess/actions/workflows/purescript.yml/badge.svg)](https://github.com/peterbecich/halogen-chess/actions/workflows/purescript.yml)
[![Build status](https://github.com/peterbecich/halogen-chess/actions/workflows/nix.yml/badge.svg)](https://github.com/peterbecich/halogen-chess/actions/workflows/nix.yml)
This project uses:

* [Purescript Bridge](https://github.com/eskimor/purescript-bridge)
* [Purescript Halogen](https://github.com/purescript-halogen/purescript-halogen)
* [Purescript Halogen Store](https://github.com/thomashoneyman/purescript-halogen-store)
* [Purescript Routing](https://github.com/purescript-contrib/purescript-routing)
* [Purescript Routing Duplex](https://github.com/natefaubion/purescript-routing-duplex)
* [Haskell library chessIO](https://github.com/mlang/chessIO)

Buggy, and lots of inefficiencies in this single-page app; will be fixed later!

![Chess board](doc/chessboard.png)

* `spago bundle-app --to static/index.js --watch`
* `cabal run halogen-chess`
* [http://localhost:8080](http://localhost:8080)

* `cabal run generate-purescript` to use Purescript Bridge

routes:
* [http://localhost:8080/chess](http://localhost:8080/chess)
* [http://localhost:8080/pageB](http://localhost:8080/pageB)
* [http://localhost:8080/pageC](http://localhost:8080/pageC)

```
ghcid --command="cabal repl"
```

```
stylish-haskell --inplace $(find -name '*.hs' -not -path './dist-newstyle/*')
```

Feedback loop:
```
feedback test
```

```
nix run .#localDevelopment
```