Modulecommonmark-0.3.1Haskell2010
Commonmark.Types
- 9 types
- 5 classes
- 3 values
- Packagecommonmark-0.3.1
- Exports17
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourcePos.hs
Instances4Eq, Data, Ord, Show
Eq ListSpacingDefined in commonmark-0.3.1 · Commonmark.TypesData ListSpacingDefined in commonmark-0.3.1 · Commonmark.TypesOrd ListSpacingDefined in commonmark-0.3.1 · Commonmark.TypesShow ListSpacingDefined in commonmark-0.3.1 · Commonmark.Types
Constructors
Instances4Eq, Data, Ord, Show
Eq DelimiterTypeDefined in commonmark-0.3.1 · Commonmark.TypesData DelimiterTypeDefined in commonmark-0.3.1 · Commonmark.TypesOrd DelimiterTypeDefined in commonmark-0.3.1 · Commonmark.TypesShow DelimiterTypeDefined in commonmark-0.3.1 · Commonmark.Types
Instances4Eq, Data, Ord, Show
Eq EnumeratorTypeDefined in commonmark-0.3.1 · Commonmark.TypesData EnumeratorTypeDefined in commonmark-0.3.1 · Commonmark.TypesOrd EnumeratorTypeDefined in commonmark-0.3.1 · Commonmark.TypesShow EnumeratorTypeDefined in commonmark-0.3.1 · Commonmark.Types
Instances3IsInline
Rangeable (Html a) => IsInline (Html a)Defined in commonmark-0.3.1 · Commonmark.Html(IsInline a, Semigroup a) => IsInline (WithSourceMap a)Defined in commonmark-0.3.1 · Commonmark.SourceMap(Applicative f, IsInline a, Monoid (f a), Show (f a)) => IsInline (f a)Defined in commonmark-0.3.1 · Commonmark.Types
class
class (Monoid b, Show b, Rangeable b, IsInline il, HasAttributes b) => IsBlock il b | b -> il whereMethods
paragraph :: il -> bplain :: il -> bthematicBreak :: bblockQuote :: b -> bcodeBlock :: Text -> Text -> bheading :: Int -> il -> brawBlock :: Format -> Text -> breferenceLinkDefinition :: Text -> (Text, Text) -> blist :: ListType -> ListSpacing -> [b] -> b
Instances3IsBlock
IsInline (Html a) => IsBlock (Html a) (Html a)Defined in commonmark-0.3.1 · Commonmark.Html(IsBlock b a, IsInline b, IsInline (WithSourceMap b), Semigroup a) => IsBlock (WithSourceMap b) (WithSourceMap a)Defined in commonmark-0.3.1 · Commonmark.SourceMap(Applicative f, Monoid (f il), Show (f il), Monoid (f b), Show (f b), IsBlock il b) => IsBlock (f il) (f b)Defined in commonmark-0.3.1 · Commonmark.Types
Constructors
Instances7Eq, Data, Ord, Show, Semigroup, Monoid, …
Eq SourceRangeDefined in commonmark-0.3.1 · Commonmark.TypesData SourceRangeDefined in commonmark-0.3.1 · Commonmark.TypesOrd SourceRangeDefined in commonmark-0.3.1 · Commonmark.TypesShow SourceRangeDefined in commonmark-0.3.1 · Commonmark.TypesSemigroup SourceRangeDefined in commonmark-0.3.1 · Commonmark.TypesMonoid SourceRangeDefined in commonmark-0.3.1 · Commonmark.TypesRangeable (Html SourceRange)Defined in commonmark-0.3.1 · Commonmark.Html
Methods
ranged :: SourceRange -> a -> a
Instances4Rangeable
Rangeable (Html SourceRange)Defined in commonmark-0.3.1 · Commonmark.HtmlRangeable (Html ())Defined in commonmark-0.3.1 · Commonmark.Html(Rangeable a, Monoid a, Show a) => Rangeable (WithSourceMap a)Defined in commonmark-0.3.1 · Commonmark.SourceMap(Functor f, Rangeable a) => Rangeable (f a)Defined in commonmark-0.3.1 · Commonmark.Types
Methods
addAttributes :: Attributes -> a -> a
Instances3HasAttributes
HasAttributes (Html a)Defined in commonmark-0.3.1 · Commonmark.HtmlHasAttributes (WithSourceMap a)Defined in commonmark-0.3.1 · Commonmark.SourceMap(Functor f, HasAttributes a) => HasAttributes (f a)Defined in commonmark-0.3.1 · Commonmark.Types
Methods
toPlainText :: a -> Text
Instances2ToPlainText
ToPlainText (Html a)Defined in commonmark-0.3.1 · Commonmark.HtmlToPlainText a => ToPlainText (WithSourceMap a)Defined in commonmark-0.3.1 · Commonmark.SourceMap
Re-exports
4 declarationsExtracts the column number from a source position.
Extracts the line number from a source position.
Extracts the name of the source from a source position.