-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Check if an HTML element is a link
--   
--   This package provides a function that checks whether a particular
--   combination of an HTML tag name and an attribute corresponds to an
--   HTML element that links to an external resource. For example, the
--   combination of the tag <tt>img</tt> and the attribute <tt>src</tt> is
--   an external link whereas the combination <tt>div</tt> and
--   <tt>style</tt> is not. This is particularly useful for web scraping.
@package islink
@version 0.1.0.0

module Text.Html.IsLink

-- | <tt>isLinkAttr tag attr</tt> returns <a>True</a> if the attribute
--   <tt>attr</tt> of an HTML element with tag name <tt>tag</tt> points to
--   an external resource, and <a>False</a> otherwise. So for example
--   <tt>isLinkAttr "a" "href"</tt> returns <a>True</a> whereas
--   <tt>isLinkAttr "a" "class"</tt> returns <a>False</a>. Note that
--   <a>isLinkAttr</a> expects both <tt>tag</tt> and <tt>attr</tt> to be in
--   lowercase, so for example <tt>isLinkAttr "A" "HREF"</tt> returns
--   <a>False</a>.
isLinkAttr :: String -> String -> Bool

-- | A <a>HashSet</a> that contains all combinations of tag names and
--   attributes that correspond to links.
allLinkAttrs :: HashSet (String, String)
