purebred-mua / purebred-email

A fast email parsing library implemented in Haskell
https://hackage.haskell.org/package/purebred-email
GNU Affero General Public License v3.0
23 stars 4 forks source link

add IsString instance for Mailbox #18

Closed frasertweedale closed 3 years ago

frasertweedale commented 5 years ago

Per https://github.com/purebred-mua/purebred/pull/207#pullrequestreview-175139273:

It could be useful to write an IsString instance for Mailbox, that just blows up if it can't be converted. This means a runtime error when processing the configuration (so we should deepseq / force the whole configuration value to catch it at program startup) but it would be more user-friendly IMO. LMK what you think.