From 1a4328b7d92062adca4adeed7d9b4e437f6a2af1 Mon Sep 17 00:00:00 2001 From: Bryan Richter Date: Thu, 20 Nov 2025 19:16:01 +0200 Subject: [PATCH] Default rtsopts tweaks -T as a default is odd -- let's do that at runtime. -O2 is usually not what you want. --- package.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.yaml b/package.yaml index 893802c..8c919dc 100644 --- a/package.yaml +++ b/package.yaml @@ -107,13 +107,13 @@ library: else: ghc-options: - -Wall - - -O2 + - -O executables: stackage-server: main: main.hs source-dirs: app - ghc-options: -Wall -threaded -O2 -rtsopts "-with-rtsopts=-N -T" + ghc-options: -Wall -threaded -O -rtsopts -with-rtsopts=-N dependencies: - stackage-server when: @@ -134,7 +134,7 @@ executables: ghc-options: - -Wall - -threaded - - -O2 + - -O - -rtsopts - -with-rtsopts=-N dependencies: @@ -158,4 +158,4 @@ benchmarks: - path-io - casa-client ghc-options: - - -O2 + - -O