Improve structure using Polysemy

This commit is contained in:
Paul-Henri Froidmont 2019-12-10 02:06:09 +01:00 committed by Paul-Henri Froidmont
parent 0ddc766aea
commit 2c6fba8312
6 changed files with 133 additions and 53 deletions

View file

@ -1,21 +1,32 @@
name: minesweeper
version: 0.1.0.0
ghc-options: -Wall
ghc-options: -Wall -O2 -flate-specialise -fspecialise-aggressively -fplugin=Polysemy.Plugin
default-extensions:
- DataKinds
- FlexibleContexts
- GADTs
- LambdaCase
- PolyKinds
- RankNTypes
- ScopedTypeVariables
- TypeApplications
- TypeOperators
- TypeFamilies
dependencies:
base
- base
- polysemy-plugin
- polysemy
- random
- containers
- array
- split
- mtl
library:
source-dirs: src/
exposed-modules:
Lib
dependencies:
- containers
- array
- split
- mtl
- random
executables:
minesweeper:
@ -23,7 +34,6 @@ executables:
main: Main.hs
dependencies:
- minesweeper
- random
- optparse-generic
tests: