Fix typo in servant-js README
This commit is contained in:
parent
a274d8a124
commit
5d4b730b3e
1 changed files with 2 additions and 2 deletions
|
@ -78,8 +78,8 @@ server counter = counterPlusOne counter -- (+1) on the TVar
|
||||||
:<|> currentValue counter -- read the TVar
|
:<|> currentValue counter -- read the TVar
|
||||||
|
|
||||||
server' :: TVar Counter -> Server TestApi'
|
server' :: TVar Counter -> Server TestApi'
|
||||||
server counter = server counter
|
server' counter = server counter
|
||||||
:<|> serveDirectory www -- serve static files
|
:<|> serveDirectory www -- serve static files
|
||||||
|
|
||||||
runServer :: TVar Counter -- ^ shared variable for the counter
|
runServer :: TVar Counter -- ^ shared variable for the counter
|
||||||
-> Int -- ^ port the server should listen on
|
-> Int -- ^ port the server should listen on
|
||||||
|
|
Loading…
Reference in a new issue