@@ -112,7 +112,7 @@ instance ToField HStoreBuilder where
112 toField Empty = toField (BS.empty)
112 toField Empty = toField (BS.empty)
113 toField (Comma x) = toField (Blaze.toLazyByteString x)
113 toField (Comma x) = toField (Blaze.toLazyByteString x)
115−newtype HStoreList = HStoreList [(Text,Text)] deriving (Typeable, Show)
115+newtype HStoreList = HStoreList {fromHStoreList :: [(Text,Text)]} deriving (Typeable, Show)
117-- | hstore
117-- | hstore
118instance ToHStore HStoreList where
118instance ToHStore HStoreList where
@@ -139,7 +139,7 @@ instance FromField HStoreList where
139 Right (Right val) ->
139 Right (Right val) ->
140 return val
140 return val
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)
144instance ToHStore HStoreMap where
144instance ToHStore HStoreMap where
145 toHStore (HStoreMap xs) = Map.foldrWithKey f mempty xs
145 toHStore (HStoreMap xs) = Map.foldrWithKey f mempty xs