on master help sign in
wai-test does not use partial values
commit2e0053c31927e83691ce5792f09abfd715b75baf authorMichael Snoyman <michael@snoyman.com> dateMon 18 Mar 2013, 10:25 (14 years ago) parent765a68b
2 files changed+4−2
wai-test/Network/Wai/Test.hs+2−1 wai-test/wai-test.cabal+2−1
wai-test/Network/Wai/Test.hs+2−1
@@ -40,6 +40,7 @@ import qualified Data.Text.Encoding as TE
4040import qualified Data.Conduit as C
4141import qualified Data.Conduit.List as CL
4242import Data.Monoid (mempty)
43+import Network.Socket.Internal (SockAddr (SockAddrInet))
4344
4445type Session = ReaderT Application (StateT ClientState IO)
4546
@@ -76,7 +77,7 @@ defaultRequest = Request
7677 , serverPort = 80
7778 , requestHeaders = []
7879 , isSecure = False
79− , remoteHost = error "Network.Wai.Test.defaultRequest{remoteHost}"
80+ , remoteHost = SockAddrInet 0 0
8081 , pathInfo = []
8182 , queryString = []
8283 , requestBody = mempty
wai-test/wai-test.cabal+2−1
@@ -1,5 +1,5 @@
11name: wai-test
2−version: 1.3.0.4
2+version: 1.3.0.5
33license: MIT
44license-file: LICENSE
55author: Michael Snoyman <michael@snoyman.com>
@@ -26,6 +26,7 @@ library
2626 , HUnit >= 1.2 && < 1.3
2727 , http-types >= 0.7
2828 , case-insensitive >= 0.2
29+ , network
2930 exposed-modules: Network.Wai.Test
3031 ghc-options: -Wall
3132