From 294143af1d2045d19439cd47ea156f8d5aad33b6 Mon Sep 17 00:00:00 2001 From: Freezeboy Date: Sat, 18 Jul 2015 00:11:44 +0200 Subject: [PATCH] Modifying T9.hs accordingly with new js gen Simply import JQuery generators And change the jsForAPI call --- servant-examples/tutorial/T9.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servant-examples/tutorial/T9.hs b/servant-examples/tutorial/T9.hs index 1b0633f0..90d1f98b 100644 --- a/servant-examples/tutorial/T9.hs +++ b/servant-examples/tutorial/T9.hs @@ -13,6 +13,7 @@ import GHC.Generics import Network.Wai import Servant import Servant.JQuery +import Servant.JQuery.JQuery import System.Random import qualified Data.Text as T @@ -92,7 +93,7 @@ server' = server :<|> serveDirectory "tutorial/t9" apiJS :: String -apiJS = jsForAPI api +apiJS = jsForAPI api generateJQueryJS writeJSFiles :: IO () writeJSFiles = do