network-fancy 0.2.0 → 0.2.1
raw patch · 3 files changed
+14/−5 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Network/Fancy/Error.hs +6/−1
- changelog.md +4/−0
- network-fancy.cabal +4/−4
Network/Fancy/Error.hs view
@@ -64,13 +64,18 @@ throwNetworkException sock desc err = throwIO $! SocketException desc sock err +#ifdef LINUX strerror :: Errno -> String strerror (Errno val) = unsafePerformIO $ allocaArray 512 $ \buffer -> do _ <- c_strerror_r val buffer 511 peekCString buffer -foreign import ccall unsafe "strerror_r" c_strerror_r :: CInt -> Ptr CChar -> CSize -> IO CInt+foreign import ccall unsafe "__xpg_strerror_r" c_strerror_r :: CInt -> Ptr CChar -> CSize -> IO CInt+#else+strerror :: Errno -> String+strerror = show+#endif throwGAIErrorIf :: IO CInt -> IO () throwGAIErrorIf comp = do
changelog.md view
@@ -1,5 +1,9 @@ # network-fancy changelog +## Version 0.2.1 2014-12-09++- Fix strerror_r symbol mangling with glibc+ ## Version 0.2.0 2014-12-09 - Use NetworkExceptions for precise error reporting
network-fancy.cabal view
@@ -1,6 +1,6 @@ name: network-fancy-version: 0.2.0-cabal-version: >=1.6+version: 0.2.1+cabal-version: >=1.8 build-type: Simple license: BSD3 license-file: COPYING@@ -34,6 +34,8 @@ exposed: True buildable: True extra-libraries: socket+ if os(linux)+ cpp-options: -DLINUX=LINUX exposed: True buildable: True cpp-options: -DCALLCONV=ccall -DSAFE_ON_WIN=unsafe@@ -46,5 +48,3 @@ extensions: TypeSynonymInstances ForeignFunctionInterface CPP DeriveDataTypeable FlexibleInstances ghc-options: -Wall--