Merge pull request #2 from mpickering/patch-1
Complete code example in Servant.Server
This commit is contained in:
commit
924c805db4
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,9 @@ import Servant.Server.Internal
|
||||||
-- > where listAllBooks = ...
|
-- > where listAllBooks = ...
|
||||||
-- > postBook book = ...
|
-- > postBook book = ...
|
||||||
-- >
|
-- >
|
||||||
|
-- > myApi :: Proxy MyApi
|
||||||
|
-- > myApi = Proxy
|
||||||
|
-- >
|
||||||
-- > app :: Application
|
-- > app :: Application
|
||||||
-- > app = serve myApi server
|
-- > app = serve myApi server
|
||||||
-- >
|
-- >
|
||||||
|
|
Loading…
Reference in a new issue