-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A library for looking up and validating HTML5 entities. -- @package html5-entity @version 0.2.0.2 module Text.Html.Entity.Data entityMap :: Map Text [Int] entitySet :: Set Text module Text.Html.Entity -- | Given an entity looks up unicode code points that represent it. -- --
-- >>> entityCodePoints "μ" -- Just [966] ---- --
-- >>> entityCodePoints "&nano;" -- Nothing --entityCodePoints :: Text -> Maybe [Int] -- | Given an entity returns it's textual representation (if any). -- --
-- >>> entityChars "μ" -- Just "μ" ---- --
-- >>> entityChars "&nano;" -- Nothing --entityChars :: Text -> Maybe Text -- | Check if entity is valid (if such entity exists). -- --
-- >>> isValidEntity "μ" -- True ---- --
-- >>> isValidEntity "&nano;" -- False --isValidEntity :: Text -> Bool -- | Given a name of entity looks up code points that represent it. -- --
-- >>> entityNameCodePoints "mu" -- Just [966] ---- --
-- >>> entityNameCodePoints "nano" -- Nothing --entityNameCodePoints :: Text -> Maybe [Int] -- | Given a name of entity returns it's textual representation (if any). -- --
-- >>> entityNameChars "mu" -- Just "μ" ---- --
-- >>> entityNameChars "nano" -- Nothing --entityNameChars :: Text -> Maybe Text -- | Check if entity name is valid (if corresponding entity exists). -- --
-- >>> isValidEntityName "mu" -- True ---- --
-- >>> isValidEntityName "nano" -- False --isValidEntityName :: Text -> Bool