on master help sign in
Fix code example in haddock of servant-mock

The example in the haddock does not coincide with the example code in servant-mock/example/main.hs

commit23fb5e1f568e8810b1e2906d7688d65035508048 authorJonathan <joncfoo@gmail.com> dateSun 10 Apr 2016, 11:03 (11 years ago) parent21822be
1 file changed+2−2
servant-mock/src/Servant/Mock.hs+2−2
servant-mock/src/Servant/Mock.hs+2−2
@@ -52,7 +52,7 @@
5252-- @
5353-- main :: IO ()
5454-- main = Network.Wai.Handler.Warp.run 8080 $
55−-- 'serve' myAPI ('mock' myAPI)
55+-- 'serve' myAPI ('mock' myAPI Proxy)
5656-- @
5757module Servant.Mock ( HasMock(..) ) where
5858
@@ -90,7 +90,7 @@ class HasServer api context => HasMock api context where
9090 -- -- let's say we will start with the frontend,
9191 -- -- and hence need a placeholder server
9292 -- server :: Server API
93− -- server = mock api
93+ -- server = mock api Proxy
9494 -- @
9595 --
9696 -- What happens here is that @'Server' API@