Complete code example in Servant.Server
This commit is contained in:
parent
df5c8d9843
commit
77aed79eba
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