on master help sign in
jsForAPI now needs to take into account Canonicalize
95a120fAlp Mestanogullari
src/Servant/JQuery.hs+1−1
@@ -112,6 +112,6 @@ instance GenerateCode rest => GenerateCode (AjaxReq :<|> rest) where
112-- | Directly generate all the javascript functions for your API
112-- | Directly generate all the javascript functions for your API
113-- from a 'Proxy' for your API type. You can then write it to
113-- from a 'Proxy' for your API type. You can then write it to
114-- a file or integrate it in a page, for example.
114-- 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))
116 => Proxy api -> String
116 => Proxy api -> String
117jsForAPI p = jsFor (jquery p)
117jsForAPI p = jsFor (jquery p)