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

Fix issue with incomplete pattern match in context w/o MonadFail #207

Closed fredefox closed 5 years ago

fredefox commented 5 years ago

This is an error in GHC >= 8.6

mightybyte commented 5 years ago

Rather than changing this code, I think a better solution is to provide a MonadFail instance. I just added it here:

https://github.com/snapframework/snap/commit/5ba5df1d14541044e9e23d145b853e672018640f

Can you give that a try and let me know if it fixes your problems?

fredefox commented 5 years ago

Works like a charm! Thank you @mightybyte.