Skip to content

MonadFail instance for Handler? #1545

Closed
@hasufell

Description

@hasufell

It seems this would do the trick:

instance MonadFail Handler where
  fail str = throwError $ err500 { errBody = fromString str }

Would that be worthwhile?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions