Emmanuel Touzery wrote:Very nice! Why not upload it to hackage to make it easier
> I could not find a pure haskell library to parse EXIF so I wrote one
> (pretty basic so far):
> https://github.com/emmanueltouzery/hsexif
for others to share and collaborate?
Perhaps the function Data.Binary.Get.runGetOrFail is what
> I wrote it with binary-strict. I also considered binary, but I would like
> the library not to throw an exception if the file that it's given is not a
> JPEG or is a JPEG without EXIF, but rather return an Either. I didn't manage
> to do that with binary
you are looking for? Or perhaps the incremental strict interface?
The binary-strict library is no longer maintained, since binary now also
> And then I realized that binary-strict was last updated in 2010, it seems
> cereal is recommended for strict binary file parsing nowadays.
> So, what should I do? Leave it as it is? Port to cereal? Port to binary?
provides a strict interface. Both binary and cereal are good choices.
Probably porting to binary would be easiest if you've already written
it for binary-strict, assuming runGetOrFail or the incremental interface
does what you want.