{"action":"created","issue":{"url":"https://api.github.com/repos/haskell-servant/servant/issues/121","labels_url":"https://api.github.com/repos/haskell-servant/servant/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/haskell-servant/servant/issues/121/comments","events_url":"https://api.github.com/repos/haskell-servant/servant/issues/121/events","html_url":"https://github.com/haskell-servant/servant/issues/121","id":88219958,"number":121,"title":"import jsForAPI docs","user":{"login":"bwo","id":68839,"avatar_url":"https://avatars.githubusercontent.com/u/68839?v=3","gravatar_id":"","url":"https://api.github.com/users/bwo","html_url":"https://github.com/bwo","followers_url":"https://api.github.com/users/bwo/followers","following_url":"https://api.github.com/users/bwo/following{/other_user}","gists_url":"https://api.github.com/users/bwo/gists{/gist_id}","starred_url":"https://api.github.com/users/bwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwo/subscriptions","organizations_url":"https://api.github.com/users/bwo/orgs","repos_url":"https://api.github.com/users/bwo/repos","events_url":"https://api.github.com/users/bwo/events{/privacy}","received_events_url":"https://api.github.com/users/bwo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/haskell-servant/servant/labels/servant-jquery","name":"servant-jquery","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-14T17:34:33Z","updated_at":"2015-08-20T20:05:57Z","closed_at":null,"body":"it seems as if this should work:\r\n\r\n```haskell\r\ntype StaticAPI = \"static\" :> Raw\r\ntype TagsAPI = \"pagetags\" :> ReqBody '[PlainText] T.Text :> Post '[JSON] ApiResponse\r\n\r\ntype API = StaticAPI :<|> TagsAPI\r\n\r\ndata ApiResponse -- blah blah\r\n\r\nserver' :: Server TagsAPI\r\nserver' = undefined -- blah blah\r\napi' :: Proxy TagsAPI\r\napi' = Proxy\r\n\r\napijs = jsForAPI api'\r\n```\r\n\r\nBut it doesn't:\r\n\r\n```\r\nsrc/Main.hs:123:9:\r\n    Couldn't match type ‘'False’ with ‘'True’\r\n    In the expression: jsForAPI api'\r\n    In an equation for ‘apijs’: apijs = jsForAPI api'\r\n```\r\n\r\nThe documentation doesn't really indicate what has to be the case for this to work."},"comment":{"url":"https://api.github.com/repos/haskell-servant/servant/issues/comments/133156279","html_url":"https://github.com/haskell-servant/servant/issues/121#issuecomment-133156279","issue_url":"https://api.github.com/repos/haskell-servant/servant/issues/121","id":133156279,"user":{"login":"alpmestan","id":119323,"avatar_url":"https://avatars.githubusercontent.com/u/119323?v=3","gravatar_id":"","url":"https://api.github.com/users/alpmestan","html_url":"https://github.com/alpmestan","followers_url":"https://api.github.com/users/alpmestan/followers","following_url":"https://api.github.com/users/alpmestan/following{/other_user}","gists_url":"https://api.github.com/users/alpmestan/gists{/gist_id}","starred_url":"https://api.github.com/users/alpmestan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alpmestan/subscriptions","organizations_url":"https://api.github.com/users/alpmestan/orgs","repos_url":"https://api.github.com/users/alpmestan/repos","events_url":"https://api.github.com/users/alpmestan/events{/privacy}","received_events_url":"https://api.github.com/users/alpmestan/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T20:05:57Z","updated_at":"2015-08-20T20:05:57Z","body":"Ideally, someone with enough javascript-fu could help us lift that restriction, so that we don't even have to mention it =) For now yeah, we should probably leave a note about this somewhere in the haddocks."}}