git.iko.soy/typeable/servant
on master help sign in
jsForAPI now needs to take into account Canonicalize
commit95a120f1101a0d79777d5c6eb364fe153fb62f5f authorAlp Mestanogullari <alpmestan@gmail.com> dateMon 20 Apr 2015, 10:21 (11 years ago) parentd90b59e
1 file changed+1−1
src/Servant/JQuery.hs+1−1
src/Servant/JQuery.hs+1−1
@@ -112,6 +112,6 @@ instance GenerateCode rest => GenerateCode (AjaxReq :<|> rest) where
112112-- | Directly generate all the javascript functions for your API
113113-- from a 'Proxy' for your API type. You can then write it to
114114-- a file or integrate it in a page, for example.
115−jsForAPI :: (HasJQ api, GenerateCode (JQ api))
115+jsForAPI :: (HasJQ (Canonicalize api), GenerateCode (JQ api))
116116 => Proxy api -> String
117117jsForAPI p = jsFor (jquery p)