File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -368,11 +368,14 @@ runBuilderWith (Builder b) = b
368368-- only exported for use in rewriting rules. Use 'mempty' otherwise.
369369{-# INLINE [1] empty #-}
370370empty :: Builder
371- empty = Builder ($ )
371+ empty = Builder (\ k br -> k br )
372372-- This eta expansion (hopefully) allows GHC to worker-wrapper the
373373-- 'BufferRange' in the 'empty' base case of loops (since
374374-- worker-wrapper requires (TODO: verify this) that all paths match
375375-- against the wrapped argument.
376+ --
377+ -- Do not use ($), which has arity 1 since base-4.19.
378+ -- See also https://gitlab.haskell.org/ghc/ghc/-/issues/23822
376379
377380-- | Concatenate two 'Builder's. This function is only exported for use in rewriting
378381-- rules. Use 'mappend' otherwise.
You can’t perform that action at this time.
0 commit comments