[patch] ServerMonad instance vor ErrorT

7 views
Skip to first unread message

Nils

unread,
Dec 17, 2009, 6:37:20 PM12/17/09
to Happs Mailinglist
Hey,

The patch for H.Server.SimpleHTTP which adds a ServerMonad ErrorT
instance.


Nils / McManiaC

errort.patch

Jeremy Shaw

unread,
Dec 17, 2009, 6:44:16 PM12/17/09
to ha...@googlegroups.com
Thanks!

Can anyone think of a reason not to apply this patch?

All it does is add this instance to SimpleHTTP:

instance (Error e, ServerMonad m) => ServerMonad (ErrorT e m) where
askRq = lift askRq
localRq f = mapErrorT $ localRq f

Which is the only sensible implementation for that instance anyway.
So, I am inclined to apply it.

- jeremy

> --
>
> You received this message because you are subscribed to the Google
> Groups "HAppS" group.
> To post to this group, send email to ha...@googlegroups.com.
> To unsubscribe from this group, send email to happs+un...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/happs?hl=en
> .
>
>
> <errort.patch>

Reply all
Reply to author
Forward
0 new messages