Modifying T9.hs accordingly with new js gen
Simply import JQuery generators And change the jsForAPI call
This commit is contained in:
parent
f9de958fda
commit
294143af1d
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue