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

@ -4,7 +4,7 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
-- hash: ae0d0337fef94e96da9aaca377817a7cbca70851243db8fe2a6c435fe06f0cfa
-- hash: e5b75ea7d51fb62c97c99a49ccb242a54d64422d7f1eeb101b67b94c40681c02
name: minesweeper
version: 0.1.0.0
@ -13,16 +13,22 @@ build-type: Simple
library
exposed-modules:
Lib
Minesweeper
Random
Terminal
other-modules:
Paths_minesweeper
hs-source-dirs:
src/
ghc-options: -Wall
default-extensions: DataKinds FlexibleContexts GADTs LambdaCase PolyKinds RankNTypes ScopedTypeVariables TypeApplications TypeOperators TypeFamilies
ghc-options: -Wall -O2 -flate-specialise -fspecialise-aggressively -fplugin=Polysemy.Plugin
build-depends:
array
, base
, containers
, mtl
, polysemy
, polysemy-plugin
, random
, split
default-language: Haskell2010
@ -33,12 +39,19 @@ executable minesweeper
Paths_minesweeper
hs-source-dirs:
app/
ghc-options: -Wall
default-extensions: DataKinds FlexibleContexts GADTs LambdaCase PolyKinds RankNTypes ScopedTypeVariables TypeApplications TypeOperators TypeFamilies
ghc-options: -Wall -O2 -flate-specialise -fspecialise-aggressively -fplugin=Polysemy.Plugin
build-depends:
base
array
, base
, containers
, minesweeper
, mtl
, optparse-generic
, polysemy
, polysemy-plugin
, random
, split
default-language: Haskell2010
test-suite minesweeper-test
@ -48,10 +61,18 @@ test-suite minesweeper-test
Paths_minesweeper
hs-source-dirs:
test/
ghc-options: -Wall
default-extensions: DataKinds FlexibleContexts GADTs LambdaCase PolyKinds RankNTypes ScopedTypeVariables TypeApplications TypeOperators TypeFamilies
ghc-options: -Wall -O2 -flate-specialise -fspecialise-aggressively -fplugin=Polysemy.Plugin
build-depends:
base
array
, base
, containers
, minesweeper
, mtl
, polysemy
, polysemy-plugin
, random
, split
, tasty
, tasty-hunit
default-language: Haskell2010