on master help sign in
Version bump
commitd3c286bab4546de85a999ee4865e9ccc62bfa3fa authorMichael Snoyman <michael@snoyman.com> dateWed 13 Jul 2011, 08:56 (15 years ago) parent616ebaf
2 files changed+5−2
README.lhs+4−1 wai.cabal+1−1
README.lhs+4−1
@@ -11,9 +11,12 @@ You want a minimal example? Here it is!
1111> import Network.HTTP.Types
1212> import Network.Wai.Handler.Warp (run)
1313> import Data.ByteString.Lazy.Char8 () -- Just for an orphan instance
14+> import Control.Monad.IO.Class (liftIO)
1415>
1516> app :: Application
16−> app _ = return $ responseLBS
17+> app _ = do
18+> liftIO $ putStrLn "I've done some IO here"
19+> return $ responseLBS
1720> status200
1821> [("Content-Type", "text/plain")]
1922> "Hello, Web!"
wai.cabal+1−1
@@ -1,5 +1,5 @@
11Name: wai
2−Version: 0.4.0
2+Version: 0.4.1
33Synopsis: Web Application Interface.
44Description: Provides a common protocol for communication between web aplications and web servers.
55License: BSD3