Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit b08c30b

Browse files
authored
Merge pull request #1003 from alanz/ghc-8.6.3
Bring in GHC 8.6.3 support
2 parents 3dc4f6d + 75e94c4 commit b08c30b

File tree

6 files changed

+65
-13
lines changed

6 files changed

+65
-13
lines changed

.circleci/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ jobs:
131131
- STACK_FILE: "stack-8.6.2.yaml"
132132
<<: *defaults
133133

134+
ghc-8.6.3:
135+
environment:
136+
- STACK_FILE: "stack-8.6.3.yaml"
137+
<<: *defaults
138+
134139
ghc-nightly:
135140
environment:
136141
- STACK_FILE: "stack.yaml"
@@ -181,5 +186,6 @@ workflows:
181186
- ghc-8.4.4
182187
- ghc-8.6.1
183188
- ghc-8.6.2
189+
- ghc-8.6.3
184190
- ghc-nightly
185191
- cabal

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
BASEDIR=$(CURDIR)
22
STACKLOCALBINDIR:=$(shell stack path --local-bin)
3-
GHC_VERSIONS= 8.6.2 8.6.1 8.4.4 8.4.3 8.4.2 8.2.2 8.2.1
3+
GHC_VERSIONS= 8.6.3 8.6.2 8.6.1 8.4.4 8.4.3 8.4.2 8.2.2 8.2.1
44

55
all: help
66
.PHONY: all
77

88

99

10-
## Builds hie for all supported GHC versions (8.2.1, 8.2.2, 8.4.2, 8.4.3, 8.4.4, 8.6.1 and 8.6.2)
10+
## Builds hie for all supported GHC versions (8.2.1, 8.2.2, 8.4.2, 8.4.3, 8.4.4, 8.6.1, 8.6.2 and 8.6.3)
1111
build: $(foreach version, $(GHC_VERSIONS), hie-$(version))
1212
.PHONY: build
1313

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ cabal update
139139

140140
The GHC version you are going to install HIE for depends on which version of GHC you are using for your project. If you don't have a current project there are two potential options:
141141

142-
1. The Nightly GHC version ([currently](https://www.stackage.org/nightly) 8.6.2)
142+
1. The Nightly GHC version ([currently](https://www.stackage.org/nightly) 8.6.3)
143143
2. The LTS GHC version (which is [currently](https://www.stackage.org/lts) 8.4.4)
144144

145145
By default in a stack project you will get the LTS version.
@@ -152,15 +152,15 @@ stack ghc -- --version
152152

153153
You can install an specific version or [all available GHC versions](#install-all-available-ghc-versions).
154154

155-
#### Install a specific GHC version 8.2.1 - 8.6.2
155+
#### Install a specific GHC version 8.2.1 - 8.6.3
156156

157157
We will use the `make` tools here to wrap `stack install`. The preferred installation mechanism is via `make`, as it makes sure the repo is synced, installs the required cabal libraries if missing, and makes copies of the executables with suffixes to be able to tell them apart.
158158

159159
Install **Nightly** (and hoogle docs):
160160

161161
```bash
162-
make hie-8.6.2
163-
make build-doc-8.6.2
162+
make hie-8.6.3
163+
make build-doc-8.6.3
164164
```
165165

166166
Install **LTS** (and hoogle docs):
@@ -196,7 +196,7 @@ This is the simplest approach as it will install all GHC versions to match again
196196

197197
This will:
198198

199-
* install all supported GHC versions (8.2.1 - 8.6.2)
199+
* install all supported GHC versions (8.2.1 - 8.6.3)
200200
* name them as expected by the VS Code plugin
201201
* build local hoogle docs for each version
202202

@@ -240,7 +240,7 @@ cabal update
240240

241241
This will:
242242

243-
* install all supported GHC versions (8.2.1 - 8.6.2)
243+
* install all supported GHC versions (8.2.1 - 8.6.3)
244244
* name them as expected by the VS Code plugin
245245
* build local hoogle docs for each version
246246

build-all.ps1

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,21 @@
55

66
$stackbindir = stack path --local-bin
77

8-
$supported_versions =
8+
$supported_versions =
99
@{ "8.2.1" = "8.2"
1010
; "8.2.2" = "8.2"
1111
; "8.4.2" = "8.4"
1212
; "8.4.3" = "8.4"
1313
; "8.4.4" = "8.4"
14+
; "8.6.1" = "8.6"
15+
; "8.6.2" = "8.6"
16+
; "8.6.3" = "8.6"
1417
}
1518

1619
function main($requested_versions) {
1720
$build_versions =
1821
$requested_versions | sort `
19-
| %{
22+
| %{
2023
$major = $supported_versions[$_]
2124
if (-not $major) { bail_unsupported_version $_ }
2225
@{ version=$_; major=$major }
@@ -45,5 +48,5 @@ function bail_unsupported_version($v) {
4548
exit
4649
}
4750

48-
if ($args) { main $args }
49-
else { main $supported_versions.Keys }
51+
if ($args) { main $args }
52+
else { main $supported_versions.Keys }

stack-8.6.3.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
resolver: nightly-2018-12-18 # GHC 8.6.3
2+
packages:
3+
- .
4+
- hie-plugin-api
5+
6+
extra-deps:
7+
- ./submodules/HaRe
8+
- ./submodules/brittany
9+
- ./submodules/cabal-helper
10+
- ./submodules/ghc-mod
11+
- ./submodules/ghc-mod/core
12+
13+
- apply-refact-0.6.0.0
14+
- butcher-1.3.2.1
15+
- cabal-plan-0.4.0.0
16+
- constrained-dynamic-0.1.0.0
17+
- ekg-json-0.1.0.6
18+
- ekg-wai-0.1.0.3
19+
- haddock-api-2.21.0
20+
- hsimport-0.8.6
21+
# - lsp-test-0.5.0.2
22+
- monad-memo-0.4.1
23+
- multistate-0.8.0.1
24+
# - resolv-0.1.1.2
25+
- syz-0.2.0.0
26+
- temporary-1.2.1.1
27+
- yaml-0.8.32
28+
29+
30+
31+
32+
flags:
33+
haskell-ide-engine:
34+
pedantic: true
35+
hie-plugin-api:
36+
pedantic: true
37+
38+
nix:
39+
packages: [ icu libcxx zlib ]
40+
41+
concurrent-tests: false

test/utils/TestUtils.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ ghcVersion = GHCPre84
133133

134134
stackYaml :: FilePath
135135
stackYaml =
136-
#if (defined(MIN_VERSION_GLASGOW_HASKELL) && (MIN_VERSION_GLASGOW_HASKELL(8,6,2,0)))
136+
#if (defined(MIN_VERSION_GLASGOW_HASKELL) && (MIN_VERSION_GLASGOW_HASKELL(8,6,3,0)))
137+
"stack-8.6.3.yaml"
138+
#elif (defined(MIN_VERSION_GLASGOW_HASKELL) && (MIN_VERSION_GLASGOW_HASKELL(8,6,2,0)))
137139
"stack-8.6.2.yaml"
138140
#elif (defined(MIN_VERSION_GLASGOW_HASKELL) && (MIN_VERSION_GLASGOW_HASKELL(8,6,1,0)))
139141
"stack-8.6.1.yaml"

0 commit comments

Comments
 (0)