Simon Peyton Jones pushed to branch wip/T23162-spj at Glasgow Haskell Compiler / GHC Commits: 8a996224 by Simon Peyton Jones at 2025-10-21T18:29:39+01:00 Wibble Endo - - - - - 1 changed file: - compiler/GHC/Utils/EndoOS.hs Changes: ===================================== compiler/GHC/Utils/EndoOS.hs ===================================== @@ -28,4 +28,5 @@ pattern EndoOS :: (a->a) -> EndoOS a pattern EndoOS f <- EndoOS' f where EndoOS f = EndoOS' (oneShot f) - -- ^^^^^^ The one-shot trick! + -- oneShot: this is the core of the one-shot trick! + -- Note [The one-shot state monad trick] in GHC.Utils.Monad. View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8a9962249f6f9c0f7e18d88971afdeeb... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8a9962249f6f9c0f7e18d88971afdeeb... You're receiving this email because of your account on gitlab.haskell.org.