Skip to content

Commit

Permalink
Upgrade to GHC 9
Browse files Browse the repository at this point in the history
  • Loading branch information
CLowcay committed Mar 20, 2022
1 parent 0dbef36 commit 009534d
Show file tree
Hide file tree
Showing 11 changed files with 140 additions and 157 deletions.
60 changes: 30 additions & 30 deletions core/package.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: hgbc-core
version: 0.1.0.0
github: "CLowcay/hgbc"
license: BSD3
author: "Callum Lowcay"
maintainer: "[email protected]"
copyright: "2019-2020 Callum Lowcay"
name: hgbc-core
version: 0.1.0.0
github: "CLowcay/hgbc"
license: BSD3
author: "Callum Lowcay"
maintainer: "[email protected]"
copyright: "2019-2020 Callum Lowcay"

extra-source-files:
- ../README.md
- ../README.md

# Metadata used when publishing your package
# synopsis: Short description of your package
Expand All @@ -16,23 +16,23 @@ extra-source-files:
# To avoid duplicated efforts in documentation and dealing with the
# complications of embedding Haddock markup inside cabal files, it is
# common to point users to the README.md file.
description: Please see the README on GitHub at <https://github.com/CLowcay/hgbc#readme>
description: Please see the README on GitHub at <https://github.com/CLowcay/hgbc#readme>

dependencies:
- base >= 4.7 && < 5
- binary
- bytestring
- containers
- directory
- filepath
- hashable
- mmap
- mtl
- primitive
- resourcet
- text
- time
- vector
- base >= 4.7 && < 5
- binary
- bytestring
- containers
- directory
- filepath
- hashable
- mmap
- mtl
- primitive
- resourcet
- text
- time
- vector

library:
source-dirs: src
Expand All @@ -50,12 +50,12 @@ library:

tests:
hgbc-core-test:
main: Spec.hs
source-dirs: test
main: Spec.hs
source-dirs: test
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- hgbc-core
- hspec
- hgbc-core
- hspec
8 changes: 0 additions & 8 deletions hgbc.code-workspace

This file was deleted.

6 changes: 3 additions & 3 deletions main/hgbc-main.cabal
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.33.0.
-- This file has been generated from package.yaml by hpack version 0.34.4.
--
-- see: https://github.com/sol/hpack
--
-- hash: 2899039651917745480fc34f2a14400eda0aa6521dd875111c164fdd00cb5e40
-- hash: a277b79373b1f287a7222187de2665a2009801760679286b77e9ba024a2348a7

name: hgbc-main
version: 0.1.0.0
Expand Down Expand Up @@ -70,7 +70,7 @@ library
, hashable
, hashtables
, hgbc-core
, htoml
, htoml-megaparsec
, http-types
, mtl
, optparse-applicative
Expand Down
68 changes: 34 additions & 34 deletions main/package.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: hgbc-main
version: 0.1.0.0
github: "CLowcay/hgbc"
license: BSD3
author: "Callum Lowcay"
maintainer: "[email protected]"
copyright: "2019-2020 Callum Lowcay"
name: hgbc-main
version: 0.1.0.0
github: "CLowcay/hgbc"
license: BSD3
author: "Callum Lowcay"
maintainer: "[email protected]"
copyright: "2019-2020 Callum Lowcay"

extra-source-files:
- ../README.md
- ../README.md

# Metadata used when publishing your package
# synopsis: Short description of your package
Expand All @@ -16,34 +16,34 @@ extra-source-files:
# To avoid duplicated efforts in documentation and dealing with the
# complications of embedding Haddock markup inside cabal files, it is
# common to point users to the README.md file.
description: Please see the README on GitHub at <https://github.com/CLowcay/hgbc#readme>
description: Please see the README on GitHub at <https://github.com/CLowcay/hgbc#readme>

dependencies:
- aeson
- async
- attoparsec
- base >= 4.7 && < 5
- bytestring
- containers
- directory
- file-embed
- filepath
- hashable
- hashtables
- hgbc-core
- htoml
- http-types
- mtl
- optparse-applicative
- resourcet
- stm
- text
- time
- unliftio
- unordered-containers
- vector
- wai
- warp
- aeson
- async
- attoparsec
- base >= 4.7 && < 5
- bytestring
- containers
- directory
- file-embed
- filepath
- hashable
- hashtables
- hgbc-core
- htoml-megaparsec
- http-types
- mtl
- optparse-applicative
- resourcet
- stm
- text
- time
- unliftio
- unordered-containers
- vector
- wai
- warp

library:
source-dirs: src
Expand Down
1 change: 0 additions & 1 deletion main/src/HGBC/Config/File.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import qualified HGBC.Keymap as Keymap
import qualified Machine.GBC.Color as Color
import Machine.GBC.Mode (EmulatorMode)
import qualified Text.Toml as Toml
import qualified Text.Toml.Types as Toml

type family HKD f a where
HKD Identity a = a
Expand Down
2 changes: 1 addition & 1 deletion main/src/HGBC/Keymap.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import qualified Data.HashMap.Strict as HM
import qualified Data.Map.Strict as M
import qualified Data.Text as T
import qualified Machine.GBC.Keypad as GBC
import qualified Text.Toml.Types as Toml
import qualified Text.Toml as Toml
import Prelude hiding (lookup)

type ScancodeDecoder k = T.Text -> Maybe (k, [Modifier])
Expand Down
17 changes: 2 additions & 15 deletions sdl/hgbc-sdl.cabal
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.33.0.
-- This file has been generated from package.yaml by hpack version 0.34.4.
--
-- see: https://github.com/sol/hpack
--
-- hash: b5edbf657de9a3aa6607063afa22abd4d242e59cdc23e8af739309946b2b000c
-- hash: fde6181214b262062cf45b49d7cde5fe337be254c2bb42114558f234b6427183

name: hgbc-sdl
version: 0.1.0.0
Expand Down Expand Up @@ -40,31 +40,18 @@ executable hgbc-sdl
build-depends:
OpenGLRaw
, StateVar
, aeson
, async
, base >=4.7 && <5
, bytestring
, containers
, directory
, file-embed
, filepath
, hashable
, hashtables
, hgbc-core
, hgbc-main
, htoml
, http-types
, megaparsec
, mtl
, optparse-applicative
, parser-combinators
, resourcet
, sdl2
, stm
, text
, time
, unordered-containers
, vector
, wai
, warp
default-language: Haskell2010
65 changes: 26 additions & 39 deletions sdl/package.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: hgbc-sdl
version: 0.1.0.0
github: "CLowcay/hgbc"
license: BSD3
author: "Callum Lowcay"
maintainer: "[email protected]"
copyright: "2019-2020 Callum Lowcay"
name: hgbc-sdl
version: 0.1.0.0
github: "CLowcay/hgbc"
license: BSD3
author: "Callum Lowcay"
maintainer: "[email protected]"
copyright: "2019-2020 Callum Lowcay"

extra-source-files:
- ../README.md
- ../README.md

# Metadata used when publishing your package
# synopsis: Short description of your package
Expand All @@ -16,42 +16,29 @@ extra-source-files:
# To avoid duplicated efforts in documentation and dealing with the
# complications of embedding Haddock markup inside cabal files, it is
# common to point users to the README.md file.
description: Please see the README on GitHub at <https://github.com/CLowcay/hgbc#readme>
description: Please see the README on GitHub at <https://github.com/CLowcay/hgbc#readme>

dependencies:
- OpenGLRaw
- StateVar
- aeson
- async
- base >= 4.7 && < 5
- bytestring
- containers
- directory
- file-embed
- filepath
- hashable
- hashtables
- hgbc-core
- hgbc-main
- htoml
- http-types
- megaparsec
- mtl
- optparse-applicative
- parser-combinators
- resourcet
- sdl2
- stm
- text
- time
- unordered-containers
- vector
- wai
- warp
- OpenGLRaw
- StateVar
- base >= 4.7 && < 5
- bytestring
- containers
- file-embed
- filepath
- hgbc-core
- hgbc-main
- megaparsec
- mtl
- optparse-applicative
- resourcet
- sdl2
- text
- vector

executables:
hgbc-sdl:
main: Main.hs
main: Main.hs
source-dirs: src
ghc-options:
- -threaded
Expand Down
6 changes: 5 additions & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
resolver: lts-18.10
resolver: lts-19.0

packages:
- core
- main
- testing
- sdl

extra-deps:
- htoml-megaparsec-2.1.0.4@sha256:6c2d9e3d747567c21f5f847317ec62b45143b9d8a01573e3759372c19ae2f16b,3504
- composition-prelude-3.0.0.2@sha256:1ffed216bd28d810fce0b5be83a661e2a892696d73b3f8de5c0f5edb9b5f0090,1216

# Override default flag values for local packages and extra-deps
flags:
sdl2:
Expand Down
24 changes: 19 additions & 5 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,24 @@
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/lock_files

packages: []
packages:
- completed:
hackage: htoml-megaparsec-2.1.0.4@sha256:6c2d9e3d747567c21f5f847317ec62b45143b9d8a01573e3759372c19ae2f16b,3504
pantry-tree:
size: 10518
sha256: 9cc332c7ff4ce73d79832d7024a5223e55726dc916a65057fa72cbb478974a97
original:
hackage: htoml-megaparsec-2.1.0.4@sha256:6c2d9e3d747567c21f5f847317ec62b45143b9d8a01573e3759372c19ae2f16b,3504
- completed:
hackage: composition-prelude-3.0.0.2@sha256:1ffed216bd28d810fce0b5be83a661e2a892696d73b3f8de5c0f5edb9b5f0090,1216
pantry-tree:
size: 284
sha256: 94fc1c55e9065ae575315ac52a552d0e03beaefef4669a58a9745c6d71b4dd6b
original:
hackage: composition-prelude-3.0.0.2@sha256:1ffed216bd28d810fce0b5be83a661e2a892696d73b3f8de5c0f5edb9b5f0090,1216
snapshots:
- completed:
size: 587546
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/18/10.yaml
sha256: 88b4f81e162ba3adc230a9fcccc4d19ac116377656bab56c7382ca88598b257a
original: lts-18.10
size: 616897
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/19/0.yaml
sha256: bbf2be02f17940bac1f87cb462d4fb0c3355de6dcfc53d84f4f9ad3ee2164f65
original: lts-19.0
Loading

0 comments on commit 009534d

Please sign in to comment.