HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

ModuleCabal-syntax-3.18.1.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