on master help sign in
Complete code example in Servant.Server
77aed79Matthew Pickering
src/Servant/Server.hs+3
@@ -29,6 +29,9 @@ import Servant.Server.Internal
29-- > where listAllBooks = ...
29-- > where listAllBooks = ...
30-- > postBook book = ...
30-- > postBook book = ...
31-- >
31-- >
32+-- > myApi :: Proxy MyApi
33+-- > myApi = Proxy
34+-- >
32-- > app :: Application
35-- > app :: Application
33-- > app = serve myApi server
36-- > app = serve myApi server
34-- >
37-- >