mirror of
https://github.com/tfausak/witch.git
synced 2024-11-22 14:58:13 +03:00
Upgrade to GHC 9.8.1 (#91)
* Upgrade to GHC 9.8.1 * Update devcontainer
This commit is contained in:
parent
26fdfa2c20
commit
8d3a632114
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"dockerComposeFile": "compose.yaml",
|
|
||||||
"initializeCommand": "docker volume create cabal-store",
|
|
||||||
"service": "devcontainer",
|
|
||||||
"workspaceFolder": "/workspaces/witch"
|
|
||||||
}
|
|
21
.devcontainer/compose.yaml
Normal file
21
.devcontainer/compose.yaml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"services": {
|
||||||
|
"devcontainer": {
|
||||||
|
"command": "sh -exc 'sleep infinity'",
|
||||||
|
"image": "public.ecr.aws/acilearning/haskell:9.6.2",
|
||||||
|
"init": true,
|
||||||
|
"volumes": [
|
||||||
|
"..:/workspace",
|
||||||
|
"cabal-cache:/home/vscode/.cache/cabal",
|
||||||
|
"cabal-state:/home/vscode/.local/state/cabal"
|
||||||
|
],
|
||||||
|
"working_dir": "/workspace"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"volumes": {
|
||||||
|
"cabal-cache": null,
|
||||||
|
"cabal-state": {
|
||||||
|
"external": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
14
.devcontainer/devcontainer.json
Normal file
14
.devcontainer/devcontainer.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"customizations": {
|
||||||
|
"vscode": {
|
||||||
|
"extensions": [
|
||||||
|
"taylorfausak.purple-yolk"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dockerComposeFile": "compose.yaml",
|
||||||
|
"initializeCommand": "docker volume create cabal-state",
|
||||||
|
"postCreateCommand": "cabal update",
|
||||||
|
"service": "devcontainer",
|
||||||
|
"workspaceFolder": "/workspace"
|
||||||
|
}
|
21
.github/workflows/workflow.yaml
vendored
21
.github/workflows/workflow.yaml
vendored
@ -22,7 +22,7 @@
|
|||||||
"id": "haskell",
|
"id": "haskell",
|
||||||
"uses": "haskell/actions/setup@v2",
|
"uses": "haskell/actions/setup@v2",
|
||||||
"with": {
|
"with": {
|
||||||
"cabal-version": "3.8.1.0",
|
"cabal-version": "3.10.1.0",
|
||||||
"ghc-version": "${{ matrix.ghc }}"
|
"ghc-version": "${{ matrix.ghc }}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -82,28 +82,33 @@
|
|||||||
"matrix": {
|
"matrix": {
|
||||||
"include": [
|
"include": [
|
||||||
{
|
{
|
||||||
"ghc": "9.4.4",
|
"ghc": "9.4.7",
|
||||||
"platform": "macos",
|
"platform": "macos",
|
||||||
"version": "12"
|
"version": "12"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ghc": "9.2.7",
|
"ghc": "9.2.8",
|
||||||
"platform": "ubuntu",
|
"platform": "ubuntu",
|
||||||
"version": "22.04"
|
"version": "22.04"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ghc": "9.4.4",
|
"ghc": "9.4.7",
|
||||||
"platform": "ubuntu",
|
"platform": "ubuntu",
|
||||||
"version": "22.04"
|
"version": "22.04"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ghc": "9.6.1",
|
"ghc": "9.6.2",
|
||||||
|
"platform": "ubuntu",
|
||||||
|
"version": "22.04"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ghc": "9.8.1",
|
||||||
"platform": "ubuntu",
|
"platform": "ubuntu",
|
||||||
"version": "22.04"
|
"version": "22.04"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"extension": ".exe",
|
"extension": ".exe",
|
||||||
"ghc": "9.4.4",
|
"ghc": "9.4.7",
|
||||||
"platform": "windows",
|
"platform": "windows",
|
||||||
"version": "2022"
|
"version": "2022"
|
||||||
}
|
}
|
||||||
@ -167,11 +172,11 @@
|
|||||||
"uses": "svenstaro/upload-release-action@v2",
|
"uses": "svenstaro/upload-release-action@v2",
|
||||||
"with": {
|
"with": {
|
||||||
"asset_name": "witch-${{ github.event.release.tag_name }}.tar.gz",
|
"asset_name": "witch-${{ github.event.release.tag_name }}.tar.gz",
|
||||||
"file": "artifact/ubuntu-9.4.4/witch-${{ github.event.release.tag_name }}.tar.gz"
|
"file": "artifact/ubuntu-9.4.7/witch-${{ github.event.release.tag_name }}.tar.gz"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"run": "cabal upload --publish --username '${{ secrets.HACKAGE_USERNAME }}' --password '${{ secrets.HACKAGE_PASSWORD }}' artifact/ubuntu-9.4.4/witch-${{ github.event.release.tag_name }}.tar.gz"
|
"run": "cabal upload --publish --username '${{ secrets.HACKAGE_USERNAME }}' --password '${{ secrets.HACKAGE_PASSWORD }}' artifact/ubuntu-9.4.7/witch-${{ github.event.release.tag_name }}.tar.gz"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
21
compose.yaml
21
compose.yaml
@ -1,21 +0,0 @@
|
|||||||
{
|
|
||||||
"services": {
|
|
||||||
"devcontainer": {
|
|
||||||
"command": "sh -c 'while sleep 1; do :; done'",
|
|
||||||
"image": "public.ecr.aws/acilearning/haskell:9.4.4",
|
|
||||||
"init": true,
|
|
||||||
"volumes": [
|
|
||||||
".:/workspaces/witch",
|
|
||||||
"cabal:/home/haskell/.cabal",
|
|
||||||
"cabal-store:/cabal-store"
|
|
||||||
],
|
|
||||||
"working_dir": "/workspaces/witch"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"volumes": {
|
|
||||||
"cabal": null,
|
|
||||||
"cabal-store": {
|
|
||||||
"external": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -23,11 +23,11 @@ flag pedantic
|
|||||||
|
|
||||||
common library
|
common library
|
||||||
build-depends:
|
build-depends:
|
||||||
, base >= 4.16.0 && < 4.19
|
, base >= 4.16.0 && < 4.20
|
||||||
, bytestring >= 0.11.3 && < 0.12
|
, bytestring >= 0.11.3 && < 0.12
|
||||||
, containers >= 0.6.5 && < 0.7
|
, containers >= 0.6.5 && < 0.7
|
||||||
, tagged >= 0.8.6 && < 0.9
|
, tagged >= 0.8.6 && < 0.9
|
||||||
, text >= 1.2.5 && < 1.3 || >= 2.0 && < 2.1
|
, text >= 1.2.5 && < 1.3 || >= 2.0 && < 2.2
|
||||||
, time >= 1.11.1 && < 1.13
|
, time >= 1.11.1 && < 1.13
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
ghc-options:
|
ghc-options:
|
||||||
@ -49,6 +49,9 @@ common library
|
|||||||
ghc-options:
|
ghc-options:
|
||||||
-Werror
|
-Werror
|
||||||
|
|
||||||
|
if impl(ghc >= 9.8)
|
||||||
|
ghc-options: -Wno-missing-role-annotations
|
||||||
|
|
||||||
common executable
|
common executable
|
||||||
import: library
|
import: library
|
||||||
|
|
||||||
@ -61,7 +64,7 @@ library
|
|||||||
import: library
|
import: library
|
||||||
|
|
||||||
build-depends:
|
build-depends:
|
||||||
, template-haskell >= 2.18 && < 2.21
|
, template-haskell >= 2.18 && < 2.22
|
||||||
exposed-modules:
|
exposed-modules:
|
||||||
Witch
|
Witch
|
||||||
Witch.Encoding
|
Witch.Encoding
|
||||||
|
Loading…
Reference in New Issue
Block a user