samisagit / natskell

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

Make validators return either ByteString or () #100

Closed samisagit closed 1 year ago

samisagit commented 1 year ago

At present when validation fails we return Just "xyz" and on success we return Nothing. This makes sense in the context of an error, however when using applicative/monad behaviour, we'd probably want the behaviour flipped, so an either makes more sense.

samisagit commented 1 year ago

Closed by #104