Created
March 6, 2013 13:07
-
-
Save uduki/5099188 to your computer and use it in GitHub Desktop.
echo server (network-conduit)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
import Data.Conduit | |
import Data.Conduit.Network | |
main :: IO () | |
main = runTCPServer (serverSettings 3001 "127.0.0.1") echo | |
echo :: Application IO | |
echo app = appSource app $$ appSink app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment