@@ -20,7 +20,7 @@ module Database.PostgreSQL.Simple.FromRow
20 ( FromRow(..)
20 ( FromRow(..)
21 , RowParser
21 , RowParser
23− , field'
23+ , fieldWith
24 , numFieldsRemaining
24 , numFieldsRemaining
@@ -65,8 +65,8 @@ import Data.Vector ((!))
65class FromRow a where
65class FromRow a where
66 fromRow :: RowParser a
66 fromRow :: RowParser a
68−field' :: (Field -> Maybe ByteString -> Ok a) -> RowParser a
68+fieldWith :: FieldParser a -> RowParser a
69−field' fieldP = RP $ do
69+fieldWith fieldP = RP $ do
70 let unCol (PQ.Col x) = fromIntegral x :: Int
70 let unCol (PQ.Col x) = fromIntegral x :: Int
71 Row{..} <- ask
71 Row{..} <- ask
72 column <- lift get
72 column <- lift get
@@ -91,7 +91,7 @@ field' fieldP = RP $ do
91 lift (lift (fieldP field (getvalue result row column)))
91 lift (lift (fieldP field (getvalue result row column)))
93field :: FromField a => RowParser a
93field :: FromField a => RowParser a
94−field = field' fromField
94+field = fieldWith fromField
96ellipsis :: ByteString -> ByteString
96ellipsis :: ByteString -> ByteString
97ellipsis bs
97ellipsis bs