V
V
voproser456542022-03-22 16:17:04
Haskell
voproser45654, 2022-03-22 16:17:04

How to reduce the weight of compiled Haskell code?

How to reduce the weight of compiled Haskell code?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wiz, 2022-04-27
@voproser45654

GHC option -split-sections
But it must be included on the entire codebase and all dependencies, otherwise it will cut one package, and the rest of the world will stick entirely.
cabal-install, globally in `~/.cabal/config`:
split-sections: true
stack, in each project, in `stack.yaml`:

ghc-options:
  "$everything": -split-sections

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question