[Git][ghc/ghc][wip/jeltsch/textual-bytecode-output] Add output of `<none>` in case of missing (type) variables
Wolfgang Jeltsch pushed to branch wip/jeltsch/textual-bytecode-output at Glasgow Haskell Compiler / GHC Commits: c461ef90 by Wolfgang Jeltsch at 2026-07-10T21:59:43+03:00 Add output of `<none>` in case of missing (type) variables - - - - - 1 changed file: - compiler/GHC/ByteCode/Show.hs Changes: ===================================== compiler/GHC/ByteCode/Show.hs ===================================== @@ -364,7 +364,7 @@ pprType = entry (text "type") . ppr -- | […] pprTypeVariables :: [IfaceTvBndr] -> SDoc pprTypeVariables = entry (text "type variables") . - vcat . + vcatOrNone . map pprTypeVariableBinder -- | […] @@ -373,7 +373,7 @@ pprTypeVariableBinder (name, kind) = ppr name <+> text "::" <+> ppr kind -- | […] pprVariables :: [Maybe (IfaceIdBndr, Word)] -> SDoc -pprVariables = entry (text "variables") . vcat . map pprVariable +pprVariables = entry (text "variables") . vcatOrNone . map pprVariable -- | […] pprVariable :: Maybe (IfaceIdBndr, Word) -> SDoc View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c461ef90e2cd36eb8c28b0de196b38f8... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c461ef90e2cd36eb8c28b0de196b38f8... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Wolfgang Jeltsch (@jeltsch)