petereon / tic-tac-toe-haskell

Trying to approach Haskell without casting a too wide of a net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tic Tac Toe - Haskell

TODOs:

  • Find formatters for .cabal and .hs files
  • Add some (prefferably Haskell based) file watcher to execute the formatters
  • Read-up on Haskell linting
  • Read-up on testing in Haskell
  • Find how to control development dependencies in .cabal
  • Find out how to handle randomness properly in Haskell (IO Monads?)
  • Research if I can compose functions instead of using the disgusting assignments (thread first macros or such?)
  • Read up on invertibility of Haskell functions

Notes:

  • stylish-haskell feels like it's not doing much - not too suitable for learners without a faintest idea on how to style Haskell

Run

Game can be ran using

cabal run
  • code is fromatted and linted using ormolu, hlint and cabal-fmt
  • code is tested using doctest

There is config for steel-overseer in form of .watcherLint and .watcherTest which can be run using

sos --rcfile .watcherLint
# and
sos --rcfile .watcherTest

About

Trying to approach Haskell without casting a too wide of a net

License:MIT License


Languages

Language:Haskell 100.0%