on master help sign in
WAI 0.4
f8b565bMichael Snoyman
Network/Wai/Application/Devel.hs+2−1
@@ -16,7 +16,8 @@ import Control.Concurrent.MVar
16 ( MVar, newEmptyMVar, newMVar
16 ( MVar, newEmptyMVar, newMVar
17 , takeMVar, putMVar, readMVar
17 , takeMVar, putMVar, readMVar
18 )
18 )
19−import Network.Wai (Application, responseLBS, status500)
19+import Network.Wai (Application, responseLBS)
20+import Network.HTTP.Types (status500)
20import Data.ByteString.Lazy.Char8 ()
21import Data.ByteString.Lazy.Char8 ()
21import Control.Monad.IO.Class (liftIO)
22import Control.Monad.IO.Class (liftIO)
22
23
Network/Wai/Handler/DevelServer.hs+1
@@ -11,6 +11,7 @@ module Network.Wai.Handler.DevelServer
11
11
12import Language.Haskell.Interpreter hiding (typeOf)
12import Language.Haskell.Interpreter hiding (typeOf)
13import Network.Wai
13import Network.Wai
14+import Network.HTTP.Types (status200)
14
15
15import Data.Text.Lazy (pack)
16import Data.Text.Lazy (pack)
16import Data.Text.Lazy.Encoding (encodeUtf8)
17import Data.Text.Lazy.Encoding (encodeUtf8)
wai-handler-devel.cabal+5−4
@@ -1,5 +1,5 @@
1Name: wai-handler-devel
1Name: wai-handler-devel
2−Version: 0.2.1
2+Version: 0.4.0
3Synopsis: WAI server that automatically reloads code after modification.
3Synopsis: WAI server that automatically reloads code after modification.
4Description: This handler automatically reloads your source code upon any changes. It works by using the hint package, essentially embedding GHC inside the handler. The handler (both the executable and library) takes three arguments: the port to listen on, the module name containing the application function, and the name of the function.
4Description: This handler automatically reloads your source code upon any changes. It works by using the hint package, essentially embedding GHC inside the handler. The handler (both the executable and library) takes three arguments: the port to listen on, the module name containing the application function, and the name of the function.
5 .
5 .
@@ -22,9 +22,10 @@ Source-repository head
22
22
23Library
23Library
24 Build-Depends: base >= 4 && < 5
24 Build-Depends: base >= 4 && < 5
25− , wai >= 0.3 && < 0.4
25+ , wai >= 0.4 && < 0.5
26− , wai-extra >= 0.3 && < 0.4
26+ , wai-extra >= 0.4 && < 0.5
27+ , http-types >= 0.6 && < 0.7
27− , warp >= 0.3 && < 0.4
28+ , warp >= 0.4 && < 0.5
28 , directory >= 1.0 && < 1.2
29 , directory >= 1.0 && < 1.2
29 , network >= 2.2 && < 2.4
30 , network >= 2.2 && < 2.4
30 , bytestring >= 0.9 && < 0.10
31 , bytestring >= 0.9 && < 0.10