packages feed

hspread 0.3.1 → 0.3.2

raw patch · 2 files changed

+12/−7 lines, 2 filesdep +extensible-exceptionsdep ~basePVP ok

version bump matches the API change (PVP)

Dependencies added: extensible-exceptions

Dependency ranges changed: base

API changes (from Hackage documentation)

Files

Spread/Client/Connection.hs view
@@ -22,7 +22,7 @@ import Spread.Client.Message import Network import Control.Applicative-import Control.Exception+import Control.Exception.Extensible import Control.Monad hiding (join) import Control.Concurrent.Chan.Closeable as C import Data.Maybe@@ -68,7 +68,7 @@     authlist <- map AN . B.split ' ' <$> hget authlistlen     checkAuthNames authnames authlist     writePut (putAuthNames authnames) h-    results <- mapM ($h) authmethods+    results <- mapM ($ h) authmethods     checkAuths results     checkAccepted =<< hGetByte h     [major,minor,patch,glen] <- map fromIntegral . Bs.unpack <$> hget 4@@ -93,7 +93,7 @@     putc = C.writeChan c     p = readMVar m     loop = p >> recv >>= putc >> loop-    in handle (\_ -> return ()) $ loop `finally` (hClose h >> C.closeChan c)+    in handle (\(SomeException _) -> return ()) $ loop `finally` (hClose h >> C.closeChan c)  hGetByte :: Handle -> IO Int hGetByte h = alloca $ \p -> 
hspread.cabal view
@@ -1,5 +1,5 @@ name:		hspread-version: 	0.3.1+version: 	0.3.2 license:	BSD3 license-file:	LICENSE author:		Andrea Vezzosi@@ -11,10 +11,15 @@     of the protocol. It's intended to be used with a serialization library     like binary, and a separate installation of the spread deamon. build-type: 	Simple-cabal-version:	>= 1.2+cabal-version:	>= 1.6 category:	Network extra-source-files: README, LICENSE, examples/hspflooder.hs+Bug-Reports: http://code.google.com/p/hspread/issues/list +source-repository head+  type:     darcs+  location: http://patch-tag.com/publicrepos/hspread+ flag small_base   description: Choose the new smaller, split-up base package. @@ -27,7 +32,7 @@                         Spread.Constants    if flag(small_base)-        build-depends: base >= 3 && < 4, containers, bytestring+        build-depends: base >= 3 && < 5, containers, bytestring   else         build-depends: base < 3-  build-depends: network, binary >= 0.3+  build-depends: network, binary >= 0.3, extensible-exceptions