File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 36
36
-- and call 'mock', which has the following type:
37
37
--
38
38
-- @
39
- -- 'mock' :: 'HasMock' api => 'Proxy' api -> 'Server' api
39
+ -- 'mock' :: 'HasMock' api context => 'Proxy' api -> 'Proxy' context -> 'Server' api
40
40
-- @
41
41
--
42
42
-- What this says is, given some API type @api@ that it knows it can
52
52
-- @
53
53
-- main :: IO ()
54
54
-- main = Network.Wai.Handler.Warp.run 8080 $
55
- -- 'serve' myAPI ('mock' myAPI)
55
+ -- 'serve' myAPI ('mock' myAPI Proxy )
56
56
-- @
57
57
module Servant.Mock ( HasMock (.. ) ) where
58
58
@@ -90,7 +90,7 @@ class HasServer api context => HasMock api context where
90
90
-- -- let's say we will start with the frontend,
91
91
-- -- and hence need a placeholder server
92
92
-- server :: Server API
93
- -- server = mock api
93
+ -- server = mock api Proxy
94
94
-- @
95
95
--
96
96
-- What happens here is that @'Server' API@
You can’t perform that action at this time.
0 commit comments