Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- newtype ReferenceMap = ReferenceMap {
- unReferenceMap :: Map Text [Dynamic]
- data LinkInfo = LinkInfo {
- linkDestination :: !Text
- linkTitle :: !Text
- linkAttributes :: !Attributes
- emptyReferenceMap :: ReferenceMap
- insertReference :: Typeable a => Text -> a -> ReferenceMap -> ReferenceMap
- lookupReference :: Typeable a => Text -> ReferenceMap -> Maybe a
Documentation
newtype ReferenceMap Source #
Lookup table for link references.
Instances
Show ReferenceMap Source # | |
Defined in Commonmark.ReferenceMap showsPrec :: Int -> ReferenceMap -> ShowS # show :: ReferenceMap -> String # showList :: [ReferenceMap] -> ShowS # |
LinkInfo | |
|
:: Typeable a | |
=> Text | Reference label |
-> a | |
-> ReferenceMap | |
-> ReferenceMap |
Insert a link reference into a reference map.
:: Typeable a | |
=> Text | Reference label |
-> ReferenceMap | |
-> Maybe a |
Lookup a reference in a reference map. If there are several
values at this key, we return the first one in the list that
can be converted to an a
.