HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulecommonmark-0.2.6Haskell2010

Commonmark.Parser

  • 1 type
  • 3 values
  • Packagecommonmark-0.2.6
  • 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

1 declaration
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