-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | A data structure for mapping metadata to text subsequences
--
-- A data structure for mapping metadata to text subsequences
@package text-markup
@version 0.1
-- | Annotate subsequences of a Text string with arbitrary
-- metadata.
module Data.Text.Markup
-- | Markup. This contains text along with markup.
data Markup a
-- | Convert a Text value into Markup with the accompanying
-- metadata value assigned to the entire Text sequence.
toMarkup :: Text -> a -> Markup a
-- | Recover the original text along with metadata assigned with
-- markRegion.
fromMarkup :: Markup a -> [(Text, a)]
-- | Mark a region of text with the specified metadata.
markRegion :: (Eq a) => Int -> Int -> a -> Markup a -> Markup a
instance GHC.Classes.Eq a => GHC.Classes.Eq (Data.Text.Markup.Markup a)
instance GHC.Show.Show a => GHC.Show.Show (Data.Text.Markup.Markup a)
instance GHC.Classes.Eq a => GHC.Classes.Eq (Data.Text.Markup.SequenceTree a)
instance GHC.Show.Show a => GHC.Show.Show (Data.Text.Markup.SequenceTree a)