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

ghc-exactprint is a library to manage manipulating Haskell source files. There are four components.

  • 1 type
  • 1 class
  • 3 values

Types

1 declaration
datadata Comment
#

A Haskell comment. The AnnKeywordId is present if it has been converted from an AnnKeywordId because the annotation must be interleaved into the stream and does not have a well-defined position

Instances5Eq, Data, Ord, Show, Outputable
  • Eq CommentDefined in ghc-exactprint-1.10.0.0 · Language.Haskell.GHC.ExactPrint.Types
  • Data CommentDefined in ghc-exactprint-1.10.0.0 · Language.Haskell.GHC.ExactPrint.Types
  • Ord CommentDefined in ghc-exactprint-1.10.0.0 · Language.Haskell.GHC.ExactPrint.Types
  • Show CommentDefined in ghc-exactprint-1.10.0.0 · Language.Haskell.GHC.ExactPrint.Types
  • Outputable CommentDefined in ghc-exactprint-1.10.0.0 · Language.Haskell.GHC.ExactPrint.Types

Parsing

1 declaration

Transformation

0 declarations

Printing

2 declarations
classclass Typeable a => ExactPrint a where
#

An AST fragment with an annotation must be able to return the requirements for nesting another one, captured in an Entry, and to be able to use the rest of the exactprint machinery to print the element. In the analogy to Outputable, exact plays the role of ppr.

Methods

Instances116ExactPrint, …

Relativising

1 declaration
valuemakeDeltaAst :: ExactPrint ast => ast -> ast
#

Transform concrete annotations into relative annotations. This should be unnecessary from GHC 9.10