Skip to content

Commit e61c51c

Browse files
authored
Use -split-sections
1 parent 9550aa1 commit e61c51c

File tree

2 files changed

+11
-23
lines changed

2 files changed

+11
-23
lines changed

stack.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
resolver: lts-15.6
2-
packages:
3-
- '.'
1+
resolver: lts-16.9
2+
3+
# Specifying `-split-sections` in this way propagates the setting to all
4+
# dependencies as well. The effect of this is a 50%-60% reduction in final
5+
# binary size, with effectively no additional compilation time cost.
6+
ghc-options:
7+
$everything: -split-sections
48

59
extra-deps:
6-
- 'haskell-src-exts-1.23.0'
710
- 'aeson-1.5.2.0'
811
- 'Cabal-3.2.0.0'
912
- 'HsYAML-aeson-0.2.0.0@rev:2'
1013
- 'HsYAML-0.2.1.0@rev:1'
11-
- 'these-1.1.1.1'
1214

1315
save-hackage-creds: false

stack.yaml.lock

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44
# https://docs.haskellstack.org/en/stable/lock_files
55

66
packages:
7-
- completed:
8-
hackage: haskell-src-exts-1.23.0@sha256:1bb9f7e97d569e56973133cb075fdcc1bfd11f90d94b035b5cf44814bb39a73d,4541
9-
pantry-tree:
10-
size: 97804
11-
sha256: 8e5bc885533431db9bf75e9609f6b80b56ab0c289a903d701f8628e78322afd0
12-
original:
13-
hackage: haskell-src-exts-1.23.0
147
- completed:
158
hackage: aeson-1.5.2.0@sha256:d00c7aa51969b2849550e4dee14c9ce188504d55ed8d7f734ce9f6976db452f6,6786
169
pantry-tree:
@@ -39,16 +32,9 @@ packages:
3932
sha256: 77d9299977dfbc7836cbbcb51fe890bb70d485d9dd89a3bbe54822635faa8108
4033
original:
4134
hackage: HsYAML-0.2.1.0@rev:1
42-
- completed:
43-
hackage: these-1.1.1.1@sha256:3b63a3942f1da4ff97786221e3c654b969b54d570fef2cf4db97da4ea26a36cc,2609
44-
pantry-tree:
45-
size: 351
46-
sha256: 9dbf8c39e2962926d5fb2c7bffba5e3407fed67a581ef60e2eaf3cb0c5778074
47-
original:
48-
hackage: these-1.1.1.1
4935
snapshots:
5036
- completed:
51-
size: 491387
52-
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/15/6.yaml
53-
sha256: 8d81505a6de861e167a58534ab62330afb75bfa108735c7db1204f7ef2a39d79
54-
original: lts-15.6
37+
size: 532380
38+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/16/9.yaml
39+
sha256: 14a7cec114424e4286adde73364438927a553ed248cc50f069a30a67e3ee1e69
40+
original: lts-16.9

0 commit comments

Comments
 (0)