Just published elm-morph!
Imagine
- Writing
Email.fromString
and gettingEmail.toString
almost for free (you can even morph bits, tokens or any elements you want) - Writing
Email.toGenericValue
and getting ajsonDecoder
,jsonEncode
,bytesDecoder
,bytesEncode
, … for free (and support for other formats is not restricted by its type)
It’s designed to be easier to work with than elm/parser
(no loop, no chomping etc.) and has high quality errors.
If you’re interested, check the package documentation. Enjoy!