Documentation
Requests from client to server.
Ping | Ping server. |
NewUser User Email | New user: username, email. |
RspInJSON Req | Send response in JSON. |
Inference User (Inference TheoremId) | Submit an inference. Server will validate the inference and return a theorem. |
TheoremAssumptions TheoremId | Request a theorem's assumptions. |
TheoremConclusion TheoremId | Request a theorem's conclusion. |
TheoremSearch Term Int | Search for a theorem similar to a term. Return a list of ids starting at the given index. |
Responses to client requests.
formatJSON :: JSON a => a -> ([Header], String)Source
HTTP headers and body for JSON transfer.
formatText :: String -> ([Header], String)Source
HTTP headers and body for text transfer.
formatHaskell :: Show a => a -> ([Header], String)Source
HTTP headers and body for shown Haskell type transfer.