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

Modulecommonmark-0.3.1Haskell2010

Commonmark.Parser

Contents
  1. Exported from Text.Parsec.Error
Synopsis
  • Packagecommonmark-0.3.1
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceParser.hs
valuecommonmark
  1. :: IsBlock il bl
  2. => String

    Name or path of input

  3. -> Text

    Commonmark text input

  4. -> Either ParseError bl

    Result or error

Parse a commonmark document using the core syntax elements. To produce HTML, instantiate bl with Html () (see Commonmark.Html. If you want to add syntax extensions or run the parser in a monadic context, use commonmarkWith. If you want to operate on tokenized input, use parseCommonmarkWith.

Exported from Text.Parsec.Error

datadata ParseError

The abstract data type ParseError represents parse errors. It provides the source position (SourcePos) of the error and a list of error messages (Message). A ParseError can be returned by the function parse. ParseError is an instance of the Show and Eq classes.

Instances3Eq, Show, Exception