snapframework / snap

Top-level package for the official Snap Framework libraries, includes the snaplets API as well as infrastructure for sessions, auth, and templates.
http://snapframework.com/
BSD 3-Clause "New" or "Revised" License
455 stars 68 forks source link

Fail via fail, not MonadFail, when available #217

Closed imalsogreg closed 4 years ago

imalsogreg commented 4 years ago

Rely on the Monad class definition of fail as long as fail is a method of Monad (all ghc's before 8.2.2).

Otherwise, a user calling fail in RST will encounter the default definition of fail, which is error.