| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Commonmark.ReferenceMap
Synopsis
- newtype ReferenceMap = ReferenceMap {
- unReferenceMap :: Map Text [Dynamic]
- data LinkInfo = LinkInfo {
- linkDestination :: !Text
- linkTitle :: !Text
- linkAttributes :: !Attributes
- linkPos :: !(Maybe SourcePos)
- 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.
Constructors
| ReferenceMap | |
Fields
| |
Instances
| Show ReferenceMap Source # | |
Defined in Commonmark.ReferenceMap Methods showsPrec :: Int -> ReferenceMap -> ShowS # show :: ReferenceMap -> String # showList :: [ReferenceMap] -> ShowS # | |
Constructors
| LinkInfo | |
Fields
| |
Arguments
| :: Typeable a | |
| => Text | Reference label |
| -> a | |
| -> ReferenceMap | |
| -> ReferenceMap |
Insert a link reference into a reference map.
Arguments
| :: 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.