Bump to lts-22.19 and brick-2.1.1
This commit is contained in:
parent
3fd342c69f
commit
bcd6b38978
4 changed files with 12 additions and 8 deletions
|
@ -19,6 +19,8 @@ import qualified Brick.Widgets.Border.Style as BS
|
||||||
import qualified Brick.Widgets.Center as C
|
import qualified Brick.Widgets.Center as C
|
||||||
import Control.Lens hiding (preview, op, zoom)
|
import Control.Lens hiding (preview, op, zoom)
|
||||||
import qualified Graphics.Vty as V
|
import qualified Graphics.Vty as V
|
||||||
|
import qualified Graphics.Vty.CrossPlatform
|
||||||
|
import qualified Graphics.Vty.Config
|
||||||
import Data.Map (Map)
|
import Data.Map (Map)
|
||||||
import qualified Data.Map as M
|
import qualified Data.Map as M
|
||||||
import Linear.V2 (V2(..))
|
import Linear.V2 (V2(..))
|
||||||
|
@ -66,9 +68,9 @@ playGame lvl mp = do
|
||||||
writeBChan chan Tick
|
writeBChan chan Tick
|
||||||
threadDelay delay
|
threadDelay delay
|
||||||
initialGame <- initGame lvl
|
initialGame <- initGame lvl
|
||||||
let builder = V.mkVty V.defaultConfig
|
let buildVty = Graphics.Vty.CrossPlatform.mkVty Graphics.Vty.Config.defaultConfig
|
||||||
initialVty <- builder
|
initialVty <- buildVty
|
||||||
ui <- customMain initialVty builder (Just chan) app $ UI
|
ui <- customMain initialVty buildVty (Just chan) app $ UI
|
||||||
{ _game = initialGame
|
{ _game = initialGame
|
||||||
, _preview = mp
|
, _preview = mp
|
||||||
, _locked = False
|
, _locked = False
|
||||||
|
|
|
@ -3,7 +3,7 @@ extra-package-dbs: []
|
||||||
packages:
|
packages:
|
||||||
- '.'
|
- '.'
|
||||||
extra-deps: []
|
extra-deps: []
|
||||||
resolver: lts-20.1
|
resolver: lts-22.19
|
||||||
nix:
|
nix:
|
||||||
packages:
|
packages:
|
||||||
- gcc
|
- gcc
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
packages: []
|
packages: []
|
||||||
snapshots:
|
snapshots:
|
||||||
- completed:
|
- completed:
|
||||||
sha256: b73b2b116143aea728c70e65c3239188998bac5bc3be56465813dacd74215dc5
|
sha256: e5cac927cf7ccbd52aa41476baa68b88c564ee6ddc3bc573dbf4210069287fe7
|
||||||
size: 648424
|
size: 713340
|
||||||
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/1.yaml
|
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/22/19.yaml
|
||||||
original: lts-20.1
|
original: lts-22.19
|
||||||
|
|
|
@ -21,9 +21,11 @@ library
|
||||||
, containers
|
, containers
|
||||||
, lens
|
, lens
|
||||||
, linear
|
, linear
|
||||||
|
, mtl
|
||||||
, random
|
, random
|
||||||
, transformers
|
, transformers
|
||||||
, vty
|
, vty
|
||||||
|
, vty-crossplatform
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
|
|
||||||
executable tetris
|
executable tetris
|
||||||
|
|
Loading…
Add table
Reference in a new issue