@@ -112,7 +112,7 @@ instance ToField HStoreBuilder where
112112 toField Empty = toField (BS.empty)
113113 toField (Comma x) = toField (Blaze.toLazyByteString x)
114114
115−newtype HStoreList = HStoreList [(Text,Text)] deriving (Typeable, Show)
115+newtype HStoreList = HStoreList {fromHStoreList :: [(Text,Text)]} deriving (Typeable, Show)
116116
117117-- | hstore
118118instance ToHStore HStoreList where
@@ -139,7 +139,7 @@ instance FromField HStoreList where
139139 Right (Right val) ->
140140 return val
141141
142−newtype HStoreMap = HStoreMap (Map Text Text) deriving (Eq, Ord, Typeable, Show)
142+newtype HStoreMap = HStoreMap {fromHStoreMap :: Map Text Text} deriving (Eq, Ord, Typeable, Show)
143143
144144instance ToHStore HStoreMap where
145145 toHStore (HStoreMap xs) = Map.foldrWithKey f mempty xs