update GHC requirements
fix shadowed name
commit3cc67dfb4afcf79aea2bb7926c7230395544fcce
authorAgentM <agentm@themactionfaction.com>
dateSun 27 Dec 2020, 21:04 (6 years ago)
parent1e60c05
Changelog.markdownnew file+4
@@ -0,0 +1,4 @@
1+# v0.1 (2020-12-27)
2+
3+* initial release to support [Project:M36](https://github.com/agentm/project-m36)
4+
README.markdown+4
@@ -11,6 +11,10 @@ Curryer is inspired by the now unmaintained [distributed-process](https://hackag
1111* timeouts
1212* leverages [winery](https://hackage.haskell.org/package/winery) for high-performance serialization
1313
14+## Requirements
15+
16+* GHC 8.6+
17+
1418## Code Example
1519
1620[Server](https://github.com/agentm/curryer/examples/SimpleKeyValueServer.hs):
curryer.cabal+1−1
@@ -18,7 +18,7 @@ Source-Repository head
1818 location: https://github.com/agentm/curryer
1919
2020Library
21− Build-Depends: base >= 4.8
21+ Build-Depends: base >= 4.12 && < 4.15
2222 , winery
2323 , bytestring
2424 , streamly >= 0.7.2
src/Network/RPC/Curryer/Server.hs+2−2
@@ -116,8 +116,8 @@ sendMessage :: Serialise a => Locking Socket -> a -> IO ()
116116sendMessage lockSock msg = do
117117 requestID <- UUID <$> UUIDBase.nextRandom
118118 let env =
119− Envelope (fingerprint msg) (RequestMessage timeout) requestID (serialise msg)
120− timeout = 0
119+ Envelope (fingerprint msg) (RequestMessage timeout') requestID (serialise msg)
120+ timeout' = 0
121121 sendEnvelope env lockSock
122122
123123--avoid orphan instance