Created
January 14, 2012 02:16
-
-
Save corruptmemory/1609921 to your computer and use it in GitHub Desktop.
Warp/Haskell PONG
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 Network.Wai | |
import Network.Wai.Handler.Warp | |
import Blaze.ByteString.Builder (fromByteString) | |
import Network.HTTP.Types (status200) | |
main = run 3000 $ const $ return $ ResponseBuilder | |
status200 | |
[("Content-Type", "text/plain"), ("Content-Length", "4")] | |
$ fromByteString "PONG" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment