summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Control/Remote/Monad/JSON/Server.hs6
-rw-r--r--remote-json-server.cabal2
2 files changed, 1 insertions, 7 deletions
diff --git a/Control/Remote/Monad/JSON/Server.hs b/Control/Remote/Monad/JSON/Server.hs
index 4b5d207..4b84b7b 100644
--- a/Control/Remote/Monad/JSON/Server.hs
+++ b/Control/Remote/Monad/JSON/Server.hs
@@ -19,12 +19,6 @@ import Web.Scotty.Trans as T
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
diff --git a/remote-json-server.cabal b/remote-json-server.cabal
index 9bf0d71..7d9f28f 100644
--- a/remote-json-server.cabal
+++ b/remote-json-server.cabal
@@ -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