rest-stringmap- Maps with stringy keys that can be transcoded to JSON and XML.

Safe HaskellNone



data StringHashMap a b Source


(Eq a, Eq b) => Eq (StringHashMap a b) 
(Show a, Show b) => Show (StringHashMap a b) 
(ToString a, ToJSON b) => ToJSON (StringHashMap a b) 
(Eq a, Hashable a, IsString a, FromJSON b) => FromJSON (StringHashMap a b) 
XmlPickler b => XmlPickler (StringHashMap String b)

Base case since XmlPickler expects strings

(Eq a, Hashable a, IsString a, ToString a, XmlPickler b) => XmlPickler (StringHashMap a b)

General case

JSONSchema b => JSONSchema (StringHashMap a b) 
Typeable (* -> * -> *) StringHashMap 

fromList :: (Eq a, Hashable a) => [(a, b)] -> StringHashMap a b Source

toList :: StringHashMap a b -> [(a, b)] Source