HORIZON HASKELLDocslts/ghc-9.14.xb2f3bfd2026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11

Moduleghc-9.14.1GHC2021

GHC.HsToCore.Pmc.Ppr

Provides facilities for pretty-printing Nablas in a way appropriate for user facing pattern match warnings.

  • 1 value
  • Packageghc-9.14.1
  • Exports1
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourcePpr.hs
valuepprUncovered :: Nabla -> [Id] -> SDoc
#

Pretty-print the guts of an uncovered value vector abstraction, i.e., its components and refutable shapes associated to any mentioned variables.

Example for ([Just p, q], [p :-> [3,4], q :-> [0,5]]):

(Just p) q
    where p is not one of {3, 4}
          q is not one of {0, 5}

When the set of refutable shapes contains more than 3 elements, the additional elements are indicated by "...".