git.iko.soy/typeable/servant
on master help sign in
Modifying T9.hs accordingly with new js gen

Simply import JQuery generators And change the jsForAPI call

commit294143af1d2045d19439cd47ea156f8d5aad33b6 authorFreezeboy <freezeboy@users.noreply.github.com> dateSat 18 Jul 2015, 00:11 (11 years ago) parentf9de958
1 file changed+2−1
servant-examples/tutorial/T9.hs+2−1
servant-examples/tutorial/T9.hs+2−1
@@ -13,6 +13,7 @@ import GHC.Generics
1313import Network.Wai
1414import Servant
1515import Servant.JQuery
16+import Servant.JQuery.JQuery
1617import System.Random
1718
1819import qualified Data.Text as T
@@ -92,7 +93,7 @@ server' = server
9293 :<|> serveDirectory "tutorial/t9"
9394
9495apiJS :: String
95−apiJS = jsForAPI api
96+apiJS = jsForAPI api generateJQueryJS
9697
9798writeJSFiles :: IO ()
9899writeJSFiles = do