I'm trying to use pipes-aeson to consume a "line-delimited" JSON file - this is a text file which has one JSON object per line. Some examples of this kind of file may be found at http://jsonstudio.com/resources/
You can see how I'm trying to use Pipes.Aeon.decode to do this at https://gist.github.com/erantapaa/4bf55d38865863529659#file-lib-hs-L90 The problem I'm running into is that Pipes.Aeson.decode seems to give a parse error if it begins parsing at the trailing whitespace at the end of the file. Since almost all text files end with a newline, I get a parse error after successfully parsing all of the objects in the file. The function test2a in the gist demonstrates this problem -- calling test2a with the empty string returns "got Nothing", but test2a on a bunch of spaces produces "got a parse error". So I'm thinking that Pipes.Aeson.decode isn't handling whitespace correctly. Or should I be doing something else? -- 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 haskell-pipes+unsubscr...@googlegroups.com. To post to this group, send email to haskell-pipes@googlegroups.com.