diff --git a/package.yaml b/package.yaml index 93685ee45..08a3b8edc 100644 --- a/package.yaml +++ b/package.yaml @@ -255,9 +255,8 @@ ghc-options: - -fno-warn-partial-type-signatures - -fno-max-relevant-binds - -j - - -freduction-depth=0 - - -prof - - -fprof-auto-call + - -freduction-depth=0 + - -fprof-auto-calls when: - condition: flag(pedantic) ghc-options: diff --git a/src/Handler/Admin/Test.hs b/src/Handler/Admin/Test.hs index ca0d2aae8..ca100366b 100644 --- a/src/Handler/Admin/Test.hs +++ b/src/Handler/Admin/Test.hs @@ -14,6 +14,7 @@ import Utils.Print import Handler.Utils import Jobs +import Data.Ratio ((%)) import Data.Char (isDigit) import qualified Data.Text as Text -- import qualified Data.Text.IO as Text @@ -97,7 +98,7 @@ postAdminTestR = do case btnResult of (FormSuccess CreateInf) -> addMessage Info "Informatik-Knopf gedrückt" (FormSuccess CreateMath) -> addMessage Warning "Knopf Mathematik erkannt" - (FormSuccess CrashApp) -> addMessage Error "Crash Button betätigt" >> error "Crash Button" + (FormSuccess CrashApp) -> addMessage Error "Crash Button Ratio 0 betätigt" >> error ("Crash Button" <> (show $ 1 % 0)) FormMissing -> return () _other -> addMessage Warning "KEIN Knopf erkannt" diff --git a/stack.yaml b/stack.yaml index e3b41af26..2c7b72c31 100644 --- a/stack.yaml +++ b/stack.yaml @@ -10,8 +10,9 @@ rebuild-ghc-options: true #ghc-options: # "$everything": -fno-prof-auto -library-profiling: true -executable-profiling: true +build: + library-profiling: true + executable-profiling: true nix: packages: []