Here is the solution I came up with:
http://lpaste.net/99795
I basically used `decodeUtf8` and `lines` to split the input into a
FreeT-delimited stream of lines. The next part was recursing over the
`FreeT` using parsers to get out the relevant information. That covers
the conversion of your byte stream to JSON Values, and then it should be
pretty easy to feed that into pipes-postgresql-simple.
Note that I could not get `pipes-text`, `pipes-attoparsec` and `aeson`
simultaneously installed, but I type-checked as much as possible and I
think it's pretty close to correct. That's the reason I stopped before
I got to the `pipes-postgresql-simple` part.
On 02/11/2014 09:47 PM, Pierre R wrote:
To deal with P1 m (P2 m (P3)
Correction: P1 m (P2 m (P3 m ())
--
You received this message because you are subscribed to the Google
Groups "Haskell Pipes" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To post to this group, send email to [email protected].
--
You received this message because you are subscribed to the Google Groups "Haskell
Pipes" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].