HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Errors reported upon failing to parse a .cabal file.

Instances2Show, Exception
datadata ProjectFileSource
#
Instances5Eq, Ord, Show, Generic, Rep
valuerenderParseErrorGeneral
  1. :: String

    What we were parsing when the error occurred.

  2. -> Maybe String

    A simpler/shorter header to display when displaying each error (normally a filepath)

  3. -> Maybe String

    Provenance, used to print additional context about what file failed (used to print the import path of a project file which failed to parse)

  4. -> (Position -> [String])

    Extra information to render based on the position

  5. -> [PError]
  6. -> [PWarning]
  7. -> String

A generic rendering function which can render from many sources.