From 6e307a54ee13c818b6541c175ebd97cbbff45fe9 Mon Sep 17 00:00:00 2001 From: Kostiantyn Rybnikov Date: Mon, 18 Mar 2019 11:21:35 +0200 Subject: [PATCH] Use serveDirectoryFileServer Failed to build previously --- examples/counter.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/counter.hs b/examples/counter.hs index 4040b05..87569ff 100644 --- a/examples/counter.hs +++ b/examples/counter.hs @@ -69,7 +69,7 @@ server counter = counterPlusOne counter -- (+1) on the TVar -- the whole server, including static file serving server' :: TVar Counter -> Server TestApi' server' counter = server counter - :<|> serveDirectory www -- serve static files + :<|> serveDirectoryFileServer www -- serve static files runServer :: TVar Counter -- ^ shared variable for the counter -> Int -- ^ port the server should listen on