xml-hamlet-0.4.1.1: Hamlet-style quasiquoter for XML content

Safe HaskellNone
LanguageHaskell98

Text.Hamlet.XML

Synopsis

Documentation

class ToAttributes a where Source #

Convert some value to a list of attribute pairs.

Minimal complete definition

toAttributes

Methods

toAttributes :: a -> Map Name Text Source #

Instances

ToAttributes [(String, String)] Source # 

Methods

toAttributes :: [(String, String)] -> Map Name Text Source #

ToAttributes [(Text, Text)] Source # 

Methods

toAttributes :: [(Text, Text)] -> Map Name Text Source #

ToAttributes [(Name, Text)] Source # 

Methods

toAttributes :: [(Name, Text)] -> Map Name Text Source #

ToAttributes (String, String) Source # 

Methods

toAttributes :: (String, String) -> Map Name Text Source #

ToAttributes (Text, Text) Source # 

Methods

toAttributes :: (Text, Text) -> Map Name Text Source #

ToAttributes (Name, Text) Source # 

Methods

toAttributes :: (Name, Text) -> Map Name Text Source #

ToAttributes (Map String String) Source # 
ToAttributes (Map Text Text) Source # 

Methods

toAttributes :: Map Text Text -> Map Name Text Source #

ToAttributes (Map Name Text) Source # 

Methods

toAttributes :: Map Name Text -> Map Name Text Source #