~jackwines/go-game

500f3ad025735f7ca5c99e11423298963d8fa530 — Jack Wines 4 months ago 8cb3c8c
cleanup and CI
4 files changed, 127 insertions(+), 8 deletions(-)

A .build.yml
A GoGame.cabal
M README.md
D stack.yaml
A .build.yml => .build.yml +9 -0
@@ 0,0 1,9 @@
image: alpine/edge
packages:
  - ghc
  - cabal
tasks:
  - build: |
    cd go-game
    cabal update
    cabal build

A GoGame.cabal => GoGame.cabal +117 -0
@@ 0,0 1,117 @@
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.31.1.
--
-- see: https://github.com/sol/hpack
--
-- hash: 9c5bbd1a42b3d1270c61584b3c6d14adf953e58ae6c1e2453624bd543ce35b52

name:           GoGame
version:        0.1.0.0
description:    Please see the README on Github at <https://github.com/jackoe/GoGame#readme>
homepage:       https://github.com/jackoe/GoGame#readme
bug-reports:    https://github.com/jackoe/GoGame/issues
author:         Jack Wines
maintainer:     jackwines@mac.com
copyright:      2018 Jack Wines
license:        BSD3
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    README.md

source-repository head
  type: git
  location: https://github.com/jackoe/GoGame

library
  exposed-modules:
      Board
      Database
      SVGBuilder
  other-modules:
      Paths_GoGame
  hs-source-dirs:
      src
  default-extensions: ScopedTypeVariables OverloadedStrings DeriveDataTypeable TemplateHaskell TypeFamilies DeriveGeneric StandaloneDeriving
  build-depends:
      acid-state
    , aeson
    , array
    , base
    , blaze-html
    , bytestring
    , containers
    , mtl
    , safecopy
    , scotty
    , svg-builder
    , text
    , wai
    , wai-extra
    , wai-middleware-static
    , wai-websockets
    , warp
    , websockets
  default-language: Haskell2010

executable goGame-exe
  main-is: Main.hs
  other-modules:
      Paths_GoGame
  hs-source-dirs:
      app
  default-extensions: ScopedTypeVariables OverloadedStrings DeriveDataTypeable TemplateHaskell TypeFamilies DeriveGeneric StandaloneDeriving
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      GoGame
    , acid-state
    , aeson
    , array
    , base
    , blaze-html
    , bytestring
    , containers
    , mtl
    , safecopy
    , scotty
    , svg-builder
    , text
    , wai
    , wai-extra
    , wai-middleware-static
    , wai-websockets
    , warp
    , websockets
  default-language: Haskell2010

test-suite goGame-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Paths_GoGame
  hs-source-dirs:
      test
  default-extensions: ScopedTypeVariables OverloadedStrings DeriveDataTypeable TemplateHaskell TypeFamilies DeriveGeneric StandaloneDeriving
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      GoGame
    , acid-state
    , aeson
    , array
    , base
    , blaze-html
    , bytestring
    , containers
    , mtl
    , safecopy
    , scotty
    , svg-builder
    , text
    , wai
    , wai-extra
    , wai-middleware-static
    , wai-websockets
    , warp
    , websockets
  default-language: Haskell2010

M README.md => README.md +1 -0
@@ 1,3 1,4 @@
[![builds.sr.ht status](https://builds.sr.ht/~jackwines/go-game.svg)](https://builds.sr.ht/~jackwines/go-game?)
This takes a game of go, represented as a series of moves, applies the rules for each move, and then outputs them as `svg` using `blaze-svg`. It then uses `scotty` and makes a fully-functioning website that lets you play a game of go with anyone anywhere. Using `websockets`, moves your opponent makes update in real time.

These already exist, but they require logins and whatnot. This one doesn't.

D stack.yaml => stack.yaml +0 -8
@@ 1,8 0,0 @@
flags: {}


extra-package-dbs: []
packages:
- .
extra-deps: [acid-state-0.14.3]
resolver: lts-12.0