HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleghc-exactprint-1.10.0.0Haskell2010

Language.Haskell.GHC.ExactPrint.Utils

  • 2 types
  • 71 values
valuedebug :: c -> String -> c
#

Provide a version of trace that comes at the end of the line, so it can easily be commented out when debugging different things.

valuepos2delta :: Pos -> Pos -> DeltaPos
#

Convert the start of the second Pos to be an offset from the first. The assumption is the reference starts before the second Pos

A GHC comment includes the span of the preceding token. Take an original comment, and convert the 'Anchor to have a have a MovedAnchor operation based on the original location, only if it does not already have one.

valuedecl2Sig :: LHsDecl GhcPs -> [LSig GhcPs]
#

Pure function to convert a LSig to a LHsBind. This does nothing to any annotations that may be attached to either of the elements. It is used as a utility function in replaceDecls