remote-json-server 0.2 → 0.2.0.1
raw patch · 2 files changed
+1/−7 lines, 2 files
Files
Control/Remote/Monad/JSON/Server.hs view
@@ -19,12 +19,6 @@ import Network.Wai.Handler.Warp (setPort) --- | A way of building client 'SendAPI' support, using wreq.-{-- serverReceiveAPI :: forall e (m :: * -> *) (t :: * -> *) a.- (Foldable t, ToJSON a, MonadIO m, ScottyError e) =>- (ReceiveAPI (Maybe Value) -> IO (t a)) -> ActionT e m ()--} -- | Blocking function that listens on a specific port, to a specific path. serverReceiveAPI :: Int -> String -> (ReceiveAPI :~> IO) -> IO () serverReceiveAPI port path f = scottyOpts opts $ post (literal path) $ scottyReceiveAPI f
remote-json-server.cabal view
@@ -1,5 +1,5 @@ name: remote-json-server-version: 0.2+version: 0.2.0.1 synopsis: Web server wrapper for remote-json description: Web server, using scotty, for the JSON RPC protocol. license: BSD3