Skip to content

Commit eff3833

Browse files
authored
Merge pull request #130 from TeofilC/wip/ghc-9.8
Add support for GHC 9.6 and GHC 9.8
2 parents 9b57b69 + dc2e3e3 commit eff3833

File tree

3 files changed

+21
-14
lines changed

3 files changed

+21
-14
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@ jobs:
99
strategy:
1010
matrix:
1111
ghc:
12+
- "9.8.2"
13+
- "9.6.4"
14+
- "9.4.8"
1215
- "9.2.2"
1316
- "9.0.2"
1417
- "8.10.7"
1518
- "8.8.4"
1619
cabal:
17-
- "3.6"
20+
- "3.10.1.0"
1821
os:
1922
- ubuntu-latest
2023
- macOS-latest
@@ -23,7 +26,7 @@ jobs:
2326
- uses: actions/checkout@v2
2427
- name: Set up Haskell
2528
id: setup-haskell-cabal
26-
uses: haskell/actions/setup@v1
29+
uses: haskell-actions/setup@v2
2730
with:
2831
ghc-version: ${{ matrix.ghc }}
2932
cabal-version: ${{ matrix.cabal }}
@@ -34,10 +37,10 @@ jobs:
3437
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal
3538
- name: Install system dependencies (Linux)
3639
if: runner.os == 'Linux'
37-
run: sudo apt-get install libgtk2.0-dev
40+
run: sudo apt-get update && sudo apt-get install libgtk2.0-dev
3841
- name: Install system dependencies (macOS)
3942
if: runner.os == 'macOS'
40-
run: brew install gtk+ pkg-config
43+
run: brew install cairo gtk+ pkg-config
4144
- name: Set extra cabal build options (macOS)
4245
if: runner.os == 'macOS'
4346
run: echo "CABAL_BUILD_OPTIONS=--constraint='gtk +have-quartz-gtk'" >> $GITHUB_ENV
@@ -98,20 +101,23 @@ jobs:
98101
strategy:
99102
matrix:
100103
ghc:
104+
- "9.8.2"
105+
- "9.6.4"
106+
- "9.4.8"
101107
- "9.2.2"
102108
- "9.0.2"
103109
- "8.10.7"
104110
- "8.8.4"
105111
cabal:
106-
- "3.6"
112+
- "3.10.1.0"
107113
os:
108114
- windows-latest
109115
fail-fast: false
110116
steps:
111117
- uses: actions/checkout@v2
112118
- name: Set up Haskell
113119
id: setup-haskell-cabal
114-
uses: haskell/actions/setup@v1
120+
uses: haskell-actions/setup@v2
115121
with:
116122
ghc-version: ${{ matrix.ghc }}
117123
cabal-version: ${{ matrix.cabal }}

GUI/EventsView.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import GHC.RTS.Events
1717
import Graphics.UI.Gtk
1818
import qualified GUI.GtkExtras as GtkExt
1919

20+
import Control.Monad
2021
import Control.Monad.Reader
2122
import Data.Array
2223
import Data.Monoid

threadscope.cabal

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ Executable threadscope
5454
pango < 0.14,
5555
binary < 0.11,
5656
array < 0.6,
57-
mtl < 2.3,
58-
filepath < 1.5,
59-
ghc-events >= 0.13 && < 0.19,
60-
containers >= 0.2 && < 0.7,
57+
mtl < 2.4,
58+
filepath < 1.6,
59+
ghc-events >= 0.13 && < 0.20,
60+
containers >= 0.2 && < 0.8,
6161
deepseq >= 1.1,
62-
text < 2.1,
62+
text < 2.2,
6363
time >= 1.1 && < 1.13,
64-
bytestring < 0.12,
64+
bytestring < 0.13,
6565
file-embed < 0.1,
66-
template-haskell < 2.20,
66+
template-haskell < 2.22,
6767
temporary >= 1.1 && < 1.4
6868

6969
include-dirs: include
@@ -116,6 +116,6 @@ Executable threadscope
116116
ghc-options: -fno-warn-unused-matches
117117

118118
if !os(windows)
119-
build-depends: unix >= 2.3 && < 2.8
119+
build-depends: unix >= 2.3 && < 2.9
120120

121121
default-language: Haskell2010

0 commit comments

Comments
 (0)