Skip to content

Commit ff7aaca

Browse files
committed
added with-utf8 on Main (to avoid character encoding errors in Windows)
1 parent 75bbc7d commit ff7aaca

File tree

5 files changed

+201
-193
lines changed

5 files changed

+201
-193
lines changed

exe/Main.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import Ide.Arguments (Arguments (..), LspArguments (..),
88
getArguments)
99
import Ide.Main (defaultMain)
1010
import Plugins
11-
11+
import Main.Utf8 (withUtf8)
1212

1313
main :: IO ()
14-
main = do
14+
main = withUtf8 $ do
1515
args <- getArguments "haskell-language-server"
1616

1717
let withExamples =

haskell-language-server.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ executable haskell-language-server
294294
, Diff
295295
, QuickCheck
296296
, ghc-paths
297-
297+
, with-utf8
298298

299299
include-dirs: include
300300
default-language: Haskell2010

stack-8.6.4.yaml

Lines changed: 71 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -2,79 +2,82 @@ resolver: lts-14.27 # Last 8.6.5
22
compiler: ghc-8.6.4
33

44
packages:
5-
- .
6-
- ./ghcide/hie-compat
7-
- ./ghcide/
8-
- ./hls-plugin-api
9-
- ./plugins/tactics
10-
- ./plugins/hls-hlint-plugin
11-
- ./plugins/hls-explicit-imports-plugin
12-
- ./plugins/hls-retrie-plugin
5+
- .
6+
- ./ghcide/hie-compat
7+
- ./ghcide/
8+
- ./hls-plugin-api
9+
- ./plugins/tactics
10+
- ./plugins/hls-hlint-plugin
11+
- ./plugins/hls-explicit-imports-plugin
12+
- ./plugins/hls-retrie-plugin
1313

1414
ghc-options:
1515
"$everything": -haddock
1616

1717
extra-deps:
18-
- aeson-1.5.2.0
19-
- apply-refact-0.8.2.1
20-
- ansi-terminal-0.10.3
21-
- base-compat-0.10.5
22-
- brittany-0.13.1.0
23-
- butcher-1.3.3.1
24-
- Cabal-3.0.2.0
25-
- cabal-plan-0.6.2.0
26-
- clock-0.7.2
27-
- Diff-0.4.0
28-
- extra-1.7.3
29-
- floskell-0.10.4
30-
- fourmolu-0.3.0.0
31-
- fuzzy-0.1.0.0
32-
# - ghcide-0.1.0
33-
- ghc-check-0.5.0.1
34-
- ghc-events-0.13.0
35-
- ghc-exactprint-0.6.3.2
36-
- ghc-lib-8.10.2.20200916
37-
- ghc-lib-parser-8.10.2.20200916
38-
- ghc-lib-parser-ex-8.10.0.16
39-
- ghc-source-gen-0.4.0.0
40-
- ghc-trace-events-0.1.2.1
41-
- haddock-api-2.22.0@rev:1
42-
- haddock-library-1.8.0
43-
- hashable-1.3.0.0
44-
- haskell-lsp-0.22.0.0
45-
- haskell-lsp-types-0.22.0.0
46-
- heapsize-0.3.0
47-
- hie-bios-0.7.1
48-
- hlint-3.2.3
49-
- HsYAML-0.2.1.0@rev:1
50-
- HsYAML-aeson-0.2.0.0@rev:2
51-
- implicit-hie-cradle-0.3.0.2
52-
- implicit-hie-0.1.2.5
53-
- indexed-profunctors-0.1
54-
- lens-4.18
55-
- lsp-test-0.11.0.6
56-
- monad-dijkstra-0.1.1.2
57-
- opentelemetry-0.6.1
58-
- opentelemetry-extra-0.6.1
59-
- optics-core-0.2
60-
- optparse-applicative-0.15.1.0
61-
- ormolu-0.1.4.1
62-
- parser-combinators-1.2.1
63-
- primitive-0.7.1.0
64-
- refinery-0.3.0.0
65-
- regex-base-0.94.0.0
66-
- regex-pcre-builtin-0.95.1.1.8.43
67-
- regex-tdfa-1.3.1.0
68-
- retrie-0.1.1.1
69-
- semialign-1.1
70-
# - github: wz1000/shake
71-
# commit: fb3859dca2e54d1bbb2c873e68ed225fa179fbef
72-
- stylish-haskell-0.12.2.0
73-
- tasty-rerun-1.1.17
74-
- temporary-1.2.1.1
75-
- these-1.1.1.1
76-
- type-equality-1
77-
- topograph-1
18+
- aeson-1.5.2.0
19+
- apply-refact-0.8.2.1
20+
- ansi-terminal-0.10.3
21+
- base-compat-0.10.5
22+
- brittany-0.13.1.0
23+
- butcher-1.3.3.1
24+
- Cabal-3.0.2.0
25+
- cabal-plan-0.6.2.0
26+
- clock-0.7.2
27+
- Diff-0.4.0
28+
- extra-1.7.3
29+
- floskell-0.10.4
30+
- fourmolu-0.3.0.0
31+
- fuzzy-0.1.0.0
32+
# - ghcide-0.1.0
33+
- ghc-check-0.5.0.1
34+
- ghc-events-0.13.0
35+
- ghc-exactprint-0.6.3.2
36+
- ghc-lib-8.10.2.20200916
37+
- ghc-lib-parser-8.10.2.20200916
38+
- ghc-lib-parser-ex-8.10.0.16
39+
- ghc-source-gen-0.4.0.0
40+
- ghc-trace-events-0.1.2.1
41+
- haddock-api-2.22.0@rev:1
42+
- haddock-library-1.8.0
43+
- hashable-1.3.0.0
44+
- haskell-lsp-0.22.0.0
45+
- haskell-lsp-types-0.22.0.0
46+
- heapsize-0.3.0
47+
- hie-bios-0.7.1
48+
- hlint-3.2.3
49+
- HsYAML-0.2.1.0@rev:1
50+
- HsYAML-aeson-0.2.0.0@rev:2
51+
- implicit-hie-cradle-0.3.0.2
52+
- implicit-hie-0.1.2.5
53+
- indexed-profunctors-0.1
54+
- lens-4.18
55+
- lsp-test-0.11.0.6
56+
- monad-dijkstra-0.1.1.2
57+
- opentelemetry-0.6.1
58+
- opentelemetry-extra-0.6.1
59+
- optics-core-0.2
60+
- optparse-applicative-0.15.1.0
61+
- ormolu-0.1.4.1
62+
- parser-combinators-1.2.1
63+
- primitive-0.7.1.0
64+
- refinery-0.3.0.0
65+
- regex-base-0.94.0.0
66+
- regex-pcre-builtin-0.95.1.1.8.43
67+
- regex-tdfa-1.3.1.0
68+
- retrie-0.1.1.1
69+
- semialign-1.1
70+
# - github: wz1000/shake
71+
# commit: fb3859dca2e54d1bbb2c873e68ed225fa179fbef
72+
- stylish-haskell-0.12.2.0
73+
- tasty-rerun-1.1.17
74+
- temporary-1.2.1.1
75+
- these-1.1.1.1
76+
- type-equality-1
77+
- topograph-1
78+
- with-utf8-1.0.2.1@sha256:95c02fffa643ddbeb092359802a512007c3e644cd509809f4716ad54592c437b,3057
79+
- th-env-0.1.0.2@sha256:d8f1f37f42a8f1a22404d7d0579528af18f5dac7232cca6bdbd5117c115a0ad5,1370
80+
7881

7982
flags:
8083
haskell-language-server:

stack-8.6.5.yaml

Lines changed: 71 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,82 @@
11
resolver: lts-14.27 # Last 8.6.5
22

33
packages:
4-
- .
5-
- ./ghcide/hie-compat
6-
- ./ghcide/
7-
- ./hls-plugin-api
8-
- ./plugins/tactics
9-
- ./plugins/hls-hlint-plugin
10-
- ./plugins/hls-explicit-imports-plugin
11-
- ./plugins/hls-retrie-plugin
4+
- .
5+
- ./ghcide/hie-compat
6+
- ./ghcide/
7+
- ./hls-plugin-api
8+
- ./plugins/tactics
9+
- ./plugins/hls-hlint-plugin
10+
- ./plugins/hls-explicit-imports-plugin
11+
- ./plugins/hls-retrie-plugin
1212

1313
ghc-options:
1414
"$everything": -haddock
1515

1616
extra-deps:
17-
- aeson-1.5.2.0
18-
- apply-refact-0.8.2.1
19-
- ansi-terminal-0.10.3
20-
- base-compat-0.10.5
21-
- brittany-0.13.1.0
22-
- butcher-1.3.3.1
23-
- Cabal-3.0.2.0
24-
- cabal-plan-0.6.2.0
25-
- clock-0.7.2
26-
- Diff-0.4.0
27-
- extra-1.7.3
28-
- floskell-0.10.4
29-
- fourmolu-0.3.0.0
30-
- fuzzy-0.1.0.0
31-
# - ghcide-0.1.0
32-
- ghc-check-0.5.0.1
33-
- ghc-events-0.13.0
34-
- ghc-exactprint-0.6.3.2
35-
- ghc-lib-8.10.2.20200916
36-
- ghc-lib-parser-8.10.2.20200916
37-
- ghc-lib-parser-ex-8.10.0.16
38-
- ghc-source-gen-0.4.0.0
39-
- ghc-trace-events-0.1.2.1
40-
- haddock-api-2.22.0@rev:1
41-
- haddock-library-1.8.0
42-
- hashable-1.3.0.0
43-
- haskell-lsp-0.22.0.0
44-
- haskell-lsp-types-0.22.0.0
45-
- heapsize-0.3.0
46-
- hie-bios-0.7.1
47-
- hlint-3.2.3
48-
- HsYAML-0.2.1.0@rev:1
49-
- HsYAML-aeson-0.2.0.0@rev:2
50-
- implicit-hie-cradle-0.3.0.2
51-
- implicit-hie-0.1.2.5
52-
- indexed-profunctors-0.1
53-
- lens-4.18
54-
- lsp-test-0.11.0.6
55-
- monad-dijkstra-0.1.1.2
56-
- opentelemetry-0.6.1
57-
- opentelemetry-extra-0.6.1
58-
- optics-core-0.2
59-
- optparse-applicative-0.15.1.0
60-
- ormolu-0.1.4.1
61-
- parser-combinators-1.2.1
62-
- primitive-0.7.1.0
63-
- refinery-0.3.0.0
64-
- regex-base-0.94.0.0
65-
- regex-pcre-builtin-0.95.1.1.8.43
66-
- regex-tdfa-1.3.1.0
67-
- retrie-0.1.1.1
68-
- semialign-1.1
69-
# - github: wz1000/shake
70-
# commit: fb3859dca2e54d1bbb2c873e68ed225fa179fbef
71-
- stylish-haskell-0.12.2.0
72-
- tasty-rerun-1.1.17
73-
- temporary-1.2.1.1
74-
- these-1.1.1.1
75-
- type-equality-1
76-
- topograph-1
17+
- aeson-1.5.2.0
18+
- apply-refact-0.8.2.1
19+
- ansi-terminal-0.10.3
20+
- base-compat-0.10.5
21+
- brittany-0.13.1.0
22+
- butcher-1.3.3.1
23+
- Cabal-3.0.2.0
24+
- cabal-plan-0.6.2.0
25+
- clock-0.7.2
26+
- Diff-0.4.0
27+
- extra-1.7.3
28+
- floskell-0.10.4
29+
- fourmolu-0.3.0.0
30+
- fuzzy-0.1.0.0
31+
# - ghcide-0.1.0
32+
- ghc-check-0.5.0.1
33+
- ghc-events-0.13.0
34+
- ghc-exactprint-0.6.3.2
35+
- ghc-lib-8.10.2.20200916
36+
- ghc-lib-parser-8.10.2.20200916
37+
- ghc-lib-parser-ex-8.10.0.16
38+
- ghc-source-gen-0.4.0.0
39+
- ghc-trace-events-0.1.2.1
40+
- haddock-api-2.22.0@rev:1
41+
- haddock-library-1.8.0
42+
- hashable-1.3.0.0
43+
- haskell-lsp-0.22.0.0
44+
- haskell-lsp-types-0.22.0.0
45+
- heapsize-0.3.0
46+
- hie-bios-0.7.1
47+
- hlint-3.2.3
48+
- HsYAML-0.2.1.0@rev:1
49+
- HsYAML-aeson-0.2.0.0@rev:2
50+
- implicit-hie-cradle-0.3.0.2
51+
- implicit-hie-0.1.2.5
52+
- indexed-profunctors-0.1
53+
- lens-4.18
54+
- lsp-test-0.11.0.6
55+
- monad-dijkstra-0.1.1.2
56+
- opentelemetry-0.6.1
57+
- opentelemetry-extra-0.6.1
58+
- optics-core-0.2
59+
- optparse-applicative-0.15.1.0
60+
- ormolu-0.1.4.1
61+
- parser-combinators-1.2.1
62+
- primitive-0.7.1.0
63+
- refinery-0.3.0.0
64+
- regex-base-0.94.0.0
65+
- regex-pcre-builtin-0.95.1.1.8.43
66+
- regex-tdfa-1.3.1.0
67+
- retrie-0.1.1.1
68+
- semialign-1.1
69+
# - github: wz1000/shake
70+
# commit: fb3859dca2e54d1bbb2c873e68ed225fa179fbef
71+
- stylish-haskell-0.12.2.0
72+
- tasty-rerun-1.1.17
73+
- temporary-1.2.1.1
74+
- these-1.1.1.1
75+
- type-equality-1
76+
- topograph-1
77+
- with-utf8-1.0.2.1@sha256:95c02fffa643ddbeb092359802a512007c3e644cd509809f4716ad54592c437b,3057
78+
- th-env-0.1.0.2@sha256:d8f1f37f42a8f1a22404d7d0579528af18f5dac7232cca6bdbd5117c115a0ad5,1370
79+
7780

7881
flags:
7982
haskell-language-server:

0 commit comments

Comments
 (0)