Warp + http-client usage over UNIX-socket.

Posted on 2016-07-07 by Oleg Grenrus

As a partial solution for help request for servant

In Haskell it's surpisingly easy to do unix-socket networking, if you ever have done it before. Setting things up for communication is very same as in C :P

Ultimately you'll need openUnixConnection :: String -> IO Connection, which has quite trivial implementation, when you know where the building blocks are.

Gist source


Site proudly generated by Hakyll