Guest User

Untitled

a guest
Aug 14th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. -- connection refused...
  2.  
  3. {-# LANGUAGE OverloadedStrings #-}
  4. {-# LANGUAGE DeriveDataTypeable #-}
  5.  
  6. module Main (main) where
  7.  
  8. import Network.Wai.Handler.Warp
  9. import Network.Wai
  10. import Network.HTTP.Types (statusOK, status400)
  11.  
  12. main :: IO ()
  13. main = do
  14. run 8000 application
  15.  
  16. application req =
  17. return $ responseLBS statusOK [ ("Content-type", "text/plain") ] "Hello world!"
Add Comment
Please, Sign In to add comment