
Hi Jeremy, all, In Happstack when I throw an error, I obtain a blank page with "server error: my message". How can I decorate this page? I'd like to have it look like the other pages of my website, and a "back to login" link, for example. Thanks! Corentin

Hello,
Happstack uses monad-control. You can use catch from lifted-base to
catch the exception. I have attached a simple demo.
You can learn more about monad-control many places including here:
https://www.fpcomplete.com/user/jwiegley/monad-control
- jeremy
On Mon, Jan 13, 2014 at 3:50 PM, Corentin Dupont
Hi Jeremy, all, In Happstack when I throw an error, I obtain a blank page with "server error: my message". How can I decorate this page? I'd like to have it look like the other pages of my website, and a "back to login" link, for example.
Thanks! Corentin
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Thanks, that's great!
So if I understand, I have to create a template error page to host the
errors?
Cheers,
Corentin
On Thu, Jan 16, 2014 at 4:37 AM, Jeremy Shaw
Hello,
Happstack uses monad-control. You can use catch from lifted-base to catch the exception. I have attached a simple demo.
You can learn more about monad-control many places including here:
https://www.fpcomplete.com/user/jwiegley/monad-control
- jeremy
On Mon, Jan 13, 2014 at 3:50 PM, Corentin Dupont
wrote: Hi Jeremy, all, In Happstack when I throw an error, I obtain a blank page with "server error: my message". How can I decorate this page? I'd like to have it look like the other pages of my website, and a "back to login" link, for example.
Thanks! Corentin
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (2)
-
Corentin Dupont
-
Jeremy Shaw