Partial isomorphisms make it possible to define both parsers and stringifiers (or even pretty printers) simultaneously as noted in e.g. Invertible syntax descriptions: Unifying parsing and pretty printing. It might make sense to either add some more combinators to Partial Lenses to support such parsing or to create a separate library for the job.
Partial isomorphisms make it possible to define both parsers and stringifiers (or even pretty printers) simultaneously as noted in e.g. Invertible syntax descriptions: Unifying parsing and pretty printing. It might make sense to either add some more combinators to Partial Lenses to support such parsing or to create a separate library for the job.