Skip to content

Commit

Permalink
Bump to lts-22.19 and brick-2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
samtay committed May 6, 2024
1 parent 3fd342c commit bcd6b38
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
8 changes: 5 additions & 3 deletions src/UI/Game.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import qualified Brick.Widgets.Border.Style as BS
import qualified Brick.Widgets.Center as C
import Control.Lens hiding (preview, op, zoom)
import qualified Graphics.Vty as V
import qualified Graphics.Vty.CrossPlatform
import qualified Graphics.Vty.Config
import Data.Map (Map)
import qualified Data.Map as M
import Linear.V2 (V2(..))
Expand Down Expand Up @@ -66,9 +68,9 @@ playGame lvl mp = do
writeBChan chan Tick
threadDelay delay
initialGame <- initGame lvl
let builder = V.mkVty V.defaultConfig
initialVty <- builder
ui <- customMain initialVty builder (Just chan) app $ UI
let buildVty = Graphics.Vty.CrossPlatform.mkVty Graphics.Vty.Config.defaultConfig
initialVty <- buildVty
ui <- customMain initialVty buildVty (Just chan) app $ UI
{ _game = initialGame
, _preview = mp
, _locked = False
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extra-package-dbs: []
packages:
- '.'
extra-deps: []
resolver: lts-20.1
resolver: lts-22.19
nix:
packages:
- gcc
Expand Down
8 changes: 4 additions & 4 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
packages: []
snapshots:
- completed:
sha256: b73b2b116143aea728c70e65c3239188998bac5bc3be56465813dacd74215dc5
size: 648424
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/1.yaml
original: lts-20.1
sha256: e5cac927cf7ccbd52aa41476baa68b88c564ee6ddc3bc573dbf4210069287fe7
size: 713340
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/22/19.yaml
original: lts-22.19
2 changes: 2 additions & 0 deletions tetris.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ library
, containers
, lens
, linear
, mtl
, random
, transformers
, vty
, vty-crossplatform
default-language: Haskell2010

executable tetris
Expand Down

0 comments on commit bcd6b38

Please sign in to comment.