samisagit / natskell

A NATS client library written in Haskell
MIT License
7 stars 0 forks source link

Add a generic parser implementation POC #59

Closed samisagit closed 2 years ago

samisagit commented 2 years ago

Parsers need to return the same type, so a new type has been created allowing a payload constructor for each option. This allows a generic handler to parse any NATS message and pattern match the resulting type.