Gracjan Polak
2015-01-03 11:53:06 UTC
Hi,
I recently discovered goodies provided by monad-control and try to use it
everywhere it makes sense. Right now I'm stuck at trying to lift simpleHTTP
properly.
Current type of simpleHTTP:
simpleHTTP :: ToMessage a => Conf -> ServerPartT IO a -> IO ()
Expected type of simpleHTTPLifted:
simpleHTTPLifted :: (MonadBaseControl IO m, ToMessage a)
=> Conf -> ServerPartT m a -> m ()
I know how to create a lifted version for each and every one of my monads,
but there are quite many of them so a generalization would be welcome! How
to do it?
More info in my stackoverflow question:
http://stackoverflow.com/questions/27733699/monadbasecontrol-how-to-lift-simplehttp-from-happstack
I recently discovered goodies provided by monad-control and try to use it
everywhere it makes sense. Right now I'm stuck at trying to lift simpleHTTP
properly.
Current type of simpleHTTP:
simpleHTTP :: ToMessage a => Conf -> ServerPartT IO a -> IO ()
Expected type of simpleHTTPLifted:
simpleHTTPLifted :: (MonadBaseControl IO m, ToMessage a)
=> Conf -> ServerPartT m a -> m ()
I know how to create a lifted version for each and every one of my monads,
but there are quite many of them so a generalization would be welcome! How
to do it?
More info in my stackoverflow question:
http://stackoverflow.com/questions/27733699/monadbasecontrol-how-to-lift-simplehttp-from-happstack
--
Gracjan
--
You received this message because you are subscribed to the Google Groups "HAppS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to happs+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/happs.
For more options, visit https://groups.google.com/d/optout.
Gracjan
--
You received this message because you are subscribed to the Google Groups "HAppS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to happs+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/happs.
For more options, visit https://groups.google.com/d/optout.