HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

ModuleCabal-syntax-3.16.0.0Haskell2010

Distribution.Fields.Pretty

Cabal-like file AST types: Field, Section etc,

This (intermediate) data type is used for pretty-printing.

Contents
  1. Fields
  2. Transformation from Field
Synopsis

Fields

valueshowFields :: (ann -> CommentPosition) -> [PrettyField ann] -> String

Prettyprint a list of fields.

Note: the first argument should return Strings without newlines and properly prefixes (with --) to count as comments. This unsafety is left in place so one could generate empty lines between comment lines.

Transformation from Field