Skip to content
snoyberg edited this page Dec 12, 2012 · 2 revisions
  • Create user-friendly Show instances for Exception datatypes. That way, if the message makes it to the user, it will mean something.
    • I don't do this part enough, but in theory: Whenever you have a library which calls a non-user-facing library that can throw exceptions, wrap those exceptions in an exception type for your library. Example: I should really modify http-conduit to wrap exceptions from network in something more user-friendly.
Clone this wiki locally