Andreas Klebinger pushed to branch wip/andreask/build-opt at Glasgow Haskell Compiler / GHC Commits: 2b309962 by Andreas Klebinger at 2026-04-20T19:42:42+00:00 Update note - - - - - c930572d by Andreas Klebinger at 2026-04-20T19:43:41+00:00 Reference Note more places - - - - - 2 changed files: - compiler/GHC/Driver/Session.hs - compiler/GHC/Hs/Instances.hs-boot Changes: ===================================== compiler/GHC/Driver/Session.hs ===================================== @@ -280,6 +280,7 @@ import GHC.Utils.Error (emptyDiagOpts, logInfo) import GHC.Settings import GHC.CmmToAsm.CFG.Weight import GHC.Core.Opt.CallerCC +-- See Note [hs-boot files as "header" files] import {-# SOURCE #-} GHC.Parser (parseIdentifier) -- build time optimization import GHC.Parser.Lexer (mkParserOpts, initParserState, P(..), ParseResult(..)) import GHC.Stg.Debug.Types ===================================== compiler/GHC/Hs/Instances.hs-boot ===================================== @@ -49,10 +49,10 @@ TakesForver.hs -> Depends.hs -> Step2-1.hs If inlining thinks from `TakesForever` isn't performance critical we can change it using SOURCE imports such that we have: -TakesForver.hs -> Depends.hs -> Step2-1.hs - | -> Step2-2.hs - | -> Step2-3.hs - | -> Step2-4.hs +TakesForver.hs-boot -> Depends.hs -> Step2-1.hs + | -> Step2-2.hs + | -> Step2-3.hs + | -> Step2-4.hs This replaces TakesForever.hs with TakesForever.hs-boot which will compile in no time at all reducing the compile time along the critical path significantly. View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/ee3550f91f54aa9e783edca1292f524... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/ee3550f91f54aa9e783edca1292f524... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Andreas Klebinger (@AndreasK)