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

Modulegraphviz-2999.20.2.0Haskell2010

Data.GraphViz.PreProcessing

"Real life" Dot code contains various items that are not directly parseable by this library. This module defines the preProcess function to remove these components, which include:

  • Comments (both /* ... */ style and // ... style);

  • Pre-processor lines (lines starting with a #);

  • Split lines (by inserting a \ the rest of that "line" is continued on the next line).

  • Strings concatenated together using "..." + "..."; these are concatenated into one big string.

  • 1 value
valuepreProcess :: Text -> Text
#

Remove unparseable features of Dot, such as comments and multi-line strings (which are converted to single-line strings).