Improve structure using Polysemy
This commit is contained in:
parent
0ddc766aea
commit
2c6fba8312
6 changed files with 133 additions and 53 deletions
32
package.yaml
32
package.yaml
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue